From 6bc3a43d52c04b6a91787bcb49d0044f1452fc4e Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Mon, 8 Jul 2013 01:58:22 +0200 Subject: Settings: everything != 0 equals true; remove .asm shaders --- src/test.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/test.cpp') diff --git a/src/test.cpp b/src/test.cpp index e609fe26f..ddbcee7f2 100644 --- a/src/test.cpp +++ b/src/test.cpp @@ -164,6 +164,10 @@ struct TestUtilities: public TestBase UASSERT(is_yes("YeS") == true); UASSERT(is_yes("") == false); UASSERT(is_yes("FAlse") == false); + UASSERT(is_yes("-1") == true); + UASSERT(is_yes("0") == false); + UASSERT(is_yes("1") == true); + UASSERT(is_yes("2") == true); const char *ends[] = {"abc", "c", "bc", NULL}; UASSERT(removeStringEnd("abc", ends) == ""); UASSERT(removeStringEnd("bc", ends) == "b"); -- cgit v1.2.3