From 04cc037955e27f78a1b00d5b0e8e3e7e2a4b5b2b Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 29 Mar 2022 18:03:05 +0300 Subject: [PATCH] ci: fix -cstrict compilation of term.ui tests --- vlib/term/ui/1_term_and_ui_compilation_test.v | 3 +-- vlib/term/ui/2_term_and_ui_compilation_test.v | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/vlib/term/ui/1_term_and_ui_compilation_test.v b/vlib/term/ui/1_term_and_ui_compilation_test.v index 8818367b25..3dc40f2384 100644 --- a/vlib/term/ui/1_term_and_ui_compilation_test.v +++ b/vlib/term/ui/1_term_and_ui_compilation_test.v @@ -2,7 +2,6 @@ import term.ui import term fn test_term_and_term_ui_can_compile_together() { - a := &ui.Context(0) - println('${term.bold('hello')} world ${int(a)}') + println('${term.bold('hello')} world ${ui.color_table[0]}') assert true } diff --git a/vlib/term/ui/2_term_and_ui_compilation_test.v b/vlib/term/ui/2_term_and_ui_compilation_test.v index b4a44f79be..0ce923a579 100644 --- a/vlib/term/ui/2_term_and_ui_compilation_test.v +++ b/vlib/term/ui/2_term_and_ui_compilation_test.v @@ -2,7 +2,6 @@ import term import term.ui fn test_term_and_term_ui_can_compile_together() { - a := &ui.Context(0) - println('${term.bold('hello')} world ${int(a)}') + println('${term.bold('hello')} world ${ui.color_table[0]}') assert true }