Skip to content

Commit

Permalink
added unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jlangch committed Mar 30, 2024
1 parent 3355150 commit 22ac896
Showing 1 changed file with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,4 +346,41 @@ public void test_tee_3() {
assertEquals("trace: 4\n", StringUtil.crlf_to_lf((String)venice.eval(script)));
}

@Test
public void test_trace_str_limit_1() {
final Venice venice = new Venice();

final String script =
"(do \n" +
" (load-module :trace) \n" +
" (trace/trace-str-limit)) ";

assertEquals(80L, venice.eval(script));
}

@Test
public void test_trace_str_limit_2() {
final Venice venice = new Venice();

final String script =
"(do \n" +
" (load-module :trace) \n" +
" (trace/trace-str-limit 120)) ";

assertEquals(120L, venice.eval(script));
}

@Test
public void test_trace_str_limit_3() {
final Venice venice = new Venice();

final String script =
"(do \n" +
" (load-module :trace) \n" +
" (trace/trace-str-limit 120) \n" +
" (trace/trace-str-limit)) ";

assertEquals(120L, venice.eval(script));
}

}

0 comments on commit 22ac896

Please sign in to comment.