1body common control 2{ 3 inputs => { "../../default.cf.sub" }; 4 bundlesequence => { default("$(this.promise_filename)") }; 5 version => "1.0"; 6} 7 8####################################################### 9 10bundle agent test 11{ 12 vars: 13 "abcd1" string => string_trim("abcd"); 14 "abcd2" string => string_trim(" abcd"); 15 "abcd3" string => string_trim("abcd "); 16 "abcd4" string => string_trim(" abcd "); 17 "abcd5" string => string_trim("abcd 18 19 "); 20 "abcd6" string => string_trim(" 21 22 abcd"); 23 "abcd7" string => string_trim(" 24 25 abcd 26 27 "); 28 "abcd_abcd" string => string_trim(" abcd abcd "); 29 30 # empty cases 31 "empty1" string => string_trim(""); 32 "empty2" string => string_trim(" "); 33 "empty3" string => string_trim(" 34 35 36 "); 37} 38 39####################################################### 40 41bundle agent check 42{ 43 methods: 44 "" usebundle => dcs_check_state(test, 45 "$(this.promise_filename).expected.json", 46 $(this.promise_filename)); 47} 48