summaryrefslogtreecommitdiffstats
path: root/edify/main.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2009-06-15 23:28:17 +0200
committerThe Android Open Source Project <initial-contribution@android.com>2009-06-15 23:28:17 +0200
commite77e091522122bed0b4f75a3abcb120e398c9abe (patch)
tree4b3d44b4b9fc35126905eb474f4972638ec5c155 /edify/main.c
parentam d9c9d10d: fixes to edify and updater script (diff)
parentadd less_than_int, greater_than_int to edify (diff)
downloadandroid_bootable_recovery-e77e091522122bed0b4f75a3abcb120e398c9abe.tar
android_bootable_recovery-e77e091522122bed0b4f75a3abcb120e398c9abe.tar.gz
android_bootable_recovery-e77e091522122bed0b4f75a3abcb120e398c9abe.tar.bz2
android_bootable_recovery-e77e091522122bed0b4f75a3abcb120e398c9abe.tar.lz
android_bootable_recovery-e77e091522122bed0b4f75a3abcb120e398c9abe.tar.xz
android_bootable_recovery-e77e091522122bed0b4f75a3abcb120e398c9abe.tar.zst
android_bootable_recovery-e77e091522122bed0b4f75a3abcb120e398c9abe.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;