From 5a0bfa03b37ce403b1b27ab525d5b4b95189ffb4 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 1 Apr 2020 15:39:54 +0200 Subject: [PATCH] fix tests --- .github/workflows/ci.yml | 3 +++ vlib/v/tests/generic_test.v | 6 +++--- vlib/v/tests/interfaces_map_test.v | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f495dcde58..c2fbb1f29f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -141,6 +141,9 @@ jobs: ../../vprod -backend x64 -o 1m 1m.v echo "Running it..." ls +# - name: SDL examples +# run: git clone --depth 1 https://github.com/vlang/sdl && cd sdl + # ./1m #run: echo "TODO" #cd examples/x64 && ../../v -x64 hello_world.v && ./hello_world # - name: Coveralls GitHub Action diff --git a/vlib/v/tests/generic_test.v b/vlib/v/tests/generic_test.v index c7a8a648e8..8383aa0925 100644 --- a/vlib/v/tests/generic_test.v +++ b/vlib/v/tests/generic_test.v @@ -1,5 +1,5 @@ +fn test_todo() {} -fn todo() {} /* // QTODO fn simple(p T) T { @@ -127,10 +127,10 @@ fn new_repo(db DB) Repo { fn test_generic_struct() { mut a := new_repo(DB{}) a.model.name = 'joe' - mut b := Repo{db: DB{}} + mut b := Repo{db: DB{} + } b.model.name = 'joe' assert a.model.name == 'joe' assert b.model.name == 'joe' } */ - diff --git a/vlib/v/tests/interfaces_map_test.v b/vlib/v/tests/interfaces_map_test.v index fa9d4cbea2..ec65f6d21e 100644 --- a/vlib/v/tests/interfaces_map_test.v +++ b/vlib/v/tests/interfaces_map_test.v @@ -1,10 +1,10 @@ module main interface Speaker { - say() string + say()string } -fn todo() {} +fn test_todo() {} /* // QTODO