summaryrefslogtreecommitdiffstats
path: root/edify/main.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2009-06-13 01:13:52 +0200
committerDoug Zongker <dougz@android.com>2009-06-13 01:13:52 +0200
commite3da02e7bcfd85c543419e7590a3c86f64d8cc8a (patch)
tree54535b2854f7312a23f9df838abfc0312befd1d2 /edify/main.c
parentfixes to edify and updater script (diff)
downloadandroid_bootable_recovery-e3da02e7bcfd85c543419e7590a3c86f64d8cc8a.tar
android_bootable_recovery-e3da02e7bcfd85c543419e7590a3c86f64d8cc8a.tar.gz
android_bootable_recovery-e3da02e7bcfd85c543419e7590a3c86f64d8cc8a.tar.bz2
android_bootable_recovery-e3da02e7bcfd85c543419e7590a3c86f64d8cc8a.tar.lz
android_bootable_recovery-e3da02e7bcfd85c543419e7590a3c86f64d8cc8a.tar.xz
android_bootable_recovery-e3da02e7bcfd85c543419e7590a3c86f64d8cc8a.tar.zst
android_bootable_recovery-e3da02e7bcfd85c543419e7590a3c86f64d8cc8a.zip
Diffstat (limited to 'edify/main.c')
-rw-r--r--edify/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/edify/main.c b/edify/main.c
index 03eefc69e..0e3610847 100644
--- a/edify/main.c
+++ b/edify/main.c
@@ -143,6 +143,16 @@ int test() {
expect("if \"\" then yes endif", "", &errors);
expect("if \"\"; t then yes endif", "yes", &errors);
+ // numeric comparisons
+ expect("less_than_int(3, 14)", "t", &errors);
+ expect("less_than_int(14, 3)", "", &errors);
+ expect("less_than_int(x, 3)", "", &errors);
+ expect("less_than_int(3, x)", "", &errors);
+ expect("greater_than_int(3, 14)", "", &errors);
+ expect("greater_than_int(14, 3)", "t", &errors);
+ expect("greater_than_int(x, 3)", "", &errors);
+ expect("greater_than_int(3, x)", "", &errors);
+
printf("\n");
return errors;