blob: cc5f37e1fd9a627d527de32f2e52cfef37a5bccb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
source [expr {[info exists ::env(TESTS_DIR)] ? "$env(TESTS_DIR)/interactive/ly.tcl" : "ly.tcl"}]
set ddir "$::env(TESTS_DIR)/data"
test data_in_format_xml {--in-format xml} {
-setup $ly_setup -cleanup $ly_cleanup -body {
ly_cmd "load modleaf"
ly_cmd "data -F xml $ddir/modleaf.dxml"
ly_cmd_err "data -F json $ddir/modleaf.dxml" "Failed to parse"
ly_cmd_err "data -F lyb $ddir/modleaf.dxml" "Failed to parse"
}}
test data_in_format_json {--in-format json} {
-setup $ly_setup -cleanup $ly_cleanup -body {
ly_cmd "load modleaf"
ly_cmd "data -F json $ddir/modleaf.djson"
ly_cmd_err "data -F xml $ddir/modleaf.djson" "Failed to parse"
ly_cmd_err "data -F lyb $ddir/modleaf.djson" "Failed to parse"
}}
cleanupTests
|