From 5acd14ba5b911aff28cb259cabdb84c5f8233e55 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 20 Dec 2018 16:48:50 +0100 Subject: bc: fix keyword matching to not think "ifz" is the "if" keyword function old new delta zbc_lex_next 2224 2225 +1 Signed-off-by: Denys Vlasenko --- testsuite/bc.tests | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'testsuite/bc.tests') diff --git a/testsuite/bc.tests b/testsuite/bc.tests index e303cf6ae..d33f8c90a 100755 --- a/testsuite/bc.tests +++ b/testsuite/bc.tests @@ -76,6 +76,11 @@ testing "bc while(cond)" \ "8\n7\n6\n5\n4\n3\n2\n1\n9\n" \ "" "i=9;while(--i)\ni\n9" +testing "bc ifz does not match if keyword" \ + "bc" \ + "1\n2\n2\n3\n" \ + "" "ifz=1;ifz\n++ifz;ifz++\nifz" + testing "bc print 1,2,3" \ "bc" \ "123" \ -- cgit v1.2.3