ce96b9825355e2ac032a397c855b768ad7c16f6f kent Thu Dec 9 12:47:14 2021 -0800 Adding new test set for comparison operations diff --git src/tabFile/tabToTabDir/tests/input/spec.txt src/tabFile/tabToTabDir/tests/input/spec.txt index 55e2980..2b52cb9 100644 --- src/tabFile/tabToTabDir/tests/input/spec.txt +++ src/tabFile/tabToTabDir/tests/input/spec.txt @@ -7,30 +7,43 @@ notmess not messy not0 not 0 not1 not 1 notEmpty not "" mess3 word_range(messy,0,3) mess3a chop_range(messy,' ',0,3) mess2end word_range(messy,-2,99999) mess_mid word_range(messy, 3, -3) letMes letter_range(messy, 4, 7) x complex + " complex" id tidy less_messy tidy("messy ", messy, " very") mangled_date symbol("DATE_", submission_date) messy messy +table cmp_test biosample_source_id +biosample_source_id +biosample_source_age_value +over50 biosample_source_age_value > 50 +under50 biosample_source_age_value < 50 +overeq50 biosample_source_age_value >= 50 +undereq50 biosample_source_age_value <= 50 +middle biosample_source_age_value >= 30 and biosample_source_age_value < 60 +senior biosample_source_age_value <= 50 ? "junior" : "senior" +is50 biosample_source_age_value = 50 +not50 biosample_source_age_value != 50 +isOne biosample_source_id = "AB_S11" + unroll unroll_test id id "1,2,3" summary GEO_Series_summary table a_strex_test id tooLoud warn("this is a test of the warning system") untidy "big messy string with messy parts" tidyStart tidy("messy ", "big messy string with messy parts", "") tidyEnd tidy("", "big messy string with messy parts", " messy") tidyBoth tidy("messy ", "big messy string with messy parts", " messy") yes ( same("a", "a") ? "yes" : "no") no ( same("a", "b") ? "yes" : "no") cond ( ends_with("abc", "d") ? "D is cond" : ends_with("abc", "b") ? "B is cond" : ends_with("abc", "c") ? "C is cond" : "unmatched") id "constant ID" symboled symbol("ID_", "constant ID")