interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / seed / omc / tests / struct-bool / mutants.tsv

13 lines · 713 bytes Raw Blame History
1# mutants of the uchar twins, run by check.sh. Fields are separated by one TAB:
2# case sed-expression
3# The expression is applied to the twin of the case (bool -> uchar, true -> 1, false -> 0), must change
4# the text, and must change the exit status to a different value below 100. If it does not, the case
5# checks nothing about that line. These run on the uchar twin, so they work with the current compiler.
6init_true s/^w = new W 5 1$/w = new W 5 0/
7put_flip s/^put w f 1$/put w f 0/
8neighbours s/^put n g 1$/put n g 0/
9adjacent s/^put b y 1$/put b y 0/
10param_edit s/^setf w 1$/setf w 0/
11loop_toggle s/^put w f 1$/put w f 0/
12array_fields s/^put a h 3 4$/put a h 3 6/
13only_field s/^w = new F 1$/w = new F 0/