Skip to content

Commit

Permalink
Workaround
Browse files Browse the repository at this point in the history
Adjusting print-out directives to try & get a trace that includes
the necessary bits for a snapshot comparison.
Kappa-Dev/KappaTools#674
  • Loading branch information
hmedina committed Sep 8, 2023
1 parent 96b90b0 commit 1e8944c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions tests/unit/tokens_in_snapshots/model.ka
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
%agent: timer(s{tik,tok}) %init: 10 timer()
%agent: timer(s{tik,tok}) %init: 1 timer()
%token: tiks %init: 0 tiks, toks
%token: toks

timer(s{tik}) -> timer(s{tok}) | 1 toks @ 1
timer(s{tok}) -> timer(s{tik}) | 1 tiks @ 1

%mod: [T] > 1 do $SNAPSHOT "snap_KaSim.ka" ; $STOP ;
%mod: [E] = 2 do $SNAPSHOT "snap_KaSim.json" ;
%mod: [E] = 3 do $STOP ;
6 changes: 3 additions & 3 deletions tests/unit/tokens_in_snapshots/query.katie
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
query 'snap_at_5'
query 'snap_at_x'
match a:{}
when time[a] > 1
do snapshot[.a] = "snap_KaTie.ka"
when sim_event_id[a] = 2
do snapshot[a.] = "snap_KaTie.json"

0 comments on commit 1e8944c

Please sign in to comment.