c.jq
This file
1module {whatever:null};2import "a" as foo;3import "d" as d {search:"./"};4import "d" as d2{search:"./"};5import "e" as e {search:"./../lib/jq"};6import "f" as f {search:"./../lib/jq"};7import "data" as $d;8def a: 0;9def c:10 if $d::d[0] != {this:"is a test",that:"is too"} then error("data import is busted")11 elif d2::meh != d::meh then error("import twice doesn't work")12 elif foo::a != "a" then error("foo::a didn't work as expected")13 elif d::meh != "meh" then error("d::meh didn't work as expected")14 elif e::bah != "bah" then error("e::bah didn't work as expected")15 elif f::f != "f is here" then error("f::f didn't work as expected")16 else foo::a + "c" + d::meh + e::bah end;