From eb57f192d4ce838ae42e4e043b5db71318646236 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 26 Mar 2020 17:21:52 +0100 Subject: [PATCH] cgen: fix test --- vlib/builtin/string_test.v | 1 + vlib/v/gen/tests/1.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/vlib/builtin/string_test.v b/vlib/builtin/string_test.v index 3173dd28c6..e1561f8283 100644 --- a/vlib/builtin/string_test.v +++ b/vlib/builtin/string_test.v @@ -567,6 +567,7 @@ fn test_quote() { fn test_ustring_comparisons() { /* + QTODO assert ('h€llô !'.ustring() == 'h€llô !'.ustring()) == true assert ('h€llô !'.ustring() == 'h€llô'.ustring()) == false assert ('h€llô !'.ustring() == 'h€llo !'.ustring()) == false diff --git a/vlib/v/gen/tests/1.c b/vlib/v/gen/tests/1.c index b8f2f5817d..e3680e2415 100644 --- a/vlib/v/gen/tests/1.c +++ b/vlib/v/gen/tests/1.c @@ -127,7 +127,7 @@ int get_int2() { void myuser() { int x = 1; - int q = x | 4100; + int q = x | 0x1004; User user = (User){ .age = 30, };