27f5d7f9b4cc6d337ab34422b25a1c94553623e9 kent Fri Aug 16 11:54:34 2019 -0700 Adding a define stanza with variables that get evaluated each line. diff --git src/tabFile/tabToTabDir/tests/input/spec.txt src/tabFile/tabToTabDir/tests/input/spec.txt index 2fb1cd1..708e4da 100644 --- src/tabFile/tabToTabDir/tests/input/spec.txt +++ src/tabFile/tabToTabDir/tests/input/spec.txt @@ -1,15 +1,27 @@ +define +messy "big messy string messy very messy with many messy parts" +tidy "tidy string" +complex split(messy,4) + +table var_test id +x complex + " complex" +id tidy +less_messy tidy("messy ", messy, " very") +mangled_date symbol("DATE_", submission_date) +messy messy + table a_strex_test id 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("abc", "d") ? "D is cond" : ends("abc", "b") ? "B is cond" : ends("abc", "c") ? "C is cond" : "unmatched") id "constant ID" symboled symbol("ID_", "constant ID") pickedNum pick( 0? 0:"zero", 1:"one") pickedString pick("a"? "b": "beta", "a": "alpha") lowered lower("NotMixedCase") uppered upper("NotMixedCase") stripped strip("constant ID", " aeiou")