xref: /openbsd-src/lib/libkeynote/testsuite/test-assertion7 (revision 983e9580c78bcbd602dac2064d50cd87f7355afc)
1*983e9580Sangeloscomment: this assertion will return "true", since "KeyC" is among the
2*983e9580Sangelos	 action authorizers and the conditions field will return "true"
3*983e9580Sangelosauthorizer: "Key6"
4*983e9580Sangeloslicensees: "KeyC"
5*983e9580Sangelosconditions: app_domain == "testing" && request == "test" &&
6*983e9580Sangelos		_VALUES == "false,maybe,probably,true" && _VALUES != "foo" &&
7*983e9580Sangelos		_ACTION_AUTHORIZERS ~= "(.*,)KeyE,.*" &&
8*983e9580Sangelos		@ _0 == 2^2/4 &&	# minor regexp testing here
9*983e9580Sangelos		_ACTION_AUTHORIZERS != "foo" &&
10*983e9580Sangelos	# now let's test precedence rules
11*983e9580Sangelos                $foo . bar == ($foo) . bar &&
12*983e9580Sangelos                $foo . bar != $(foo . bar) &&
13*983e9580Sangelos		$foo == $(foo) &&
14*983e9580Sangelos		$ ("fo" . "o") == foo &&
15*983e9580Sangelos		$ "fo" . "o" != $"foo" &&
16*983e9580Sangelos		-1 * 12 == -12 &&
17*983e9580Sangelos		12 * 1 - 1 != 0 &&
18*983e9580Sangelos		@(foo . bar) == 0 &&
19*983e9580Sangelos		$((("foo"))) == foo &&
20*983e9580Sangelos		@foo + 1 == @bar + 1 &&  	# 1 == 1
21*983e9580Sangelos		@foo == 0 &&
22*983e9580Sangelos		  variable == "yes" -> "true";
23*983e9580Sangelos
24*983e9580Sangelos	@foo / @foo == @foo -> "maybe";
25