aboutsummaryrefslogtreecommitdiff
path: root/tests/icon/reject/range.zc
blob: 42bc0f46d7c13bee6e750534457bb7abe5a3aa74 (plain) (blame)
1
2
3
4
5
6
7
8
9
include rt;
include run;
include icon;
fn main() {
	let q = run.tokens("return 1;"), r = run.tokens("2");
	let changed = icon.splice(q, -1, 1, r);
	rt.put_n(changed == 0); rt.put_c(' '); rt.put_n(icon.error()); rt.put_c(10);
	return 0;
}