diff options
author | Martin Michlmayr <tbm@cyrius.com> | 2016-02-15 13:58:18 -0800 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2016-02-15 13:58:18 -0800 |
commit | c5f68caa9e4fa9fb1fc44a62af9aeace12206469 (patch) | |
tree | 978a828da976ff740726bddf0bd23637a275dfd6 /test/regress/981.test | |
parent | 82ef9dc388a9eb42e7e13b8d1a79c98b6e857ada (diff) | |
download | fork-ledger-c5f68caa9e4fa9fb1fc44a62af9aeace12206469.tar.gz fork-ledger-c5f68caa9e4fa9fb1fc44a62af9aeace12206469.tar.bz2 fork-ledger-c5f68caa9e4fa9fb1fc44a62af9aeace12206469.zip |
Increase maximum length for regex
Fixes bug #981
Diffstat (limited to 'test/regress/981.test')
-rw-r--r-- | test/regress/981.test | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/regress/981.test b/test/regress/981.test new file mode 100644 index 00000000..14ef19ff --- /dev/null +++ b/test/regress/981.test @@ -0,0 +1,28 @@ + +; Test a regex longer than 255 char + +tag Project + check value =~ /^(0ad|ankur|aptosid|archlinux|chakra|debian|debconf14|debconf15|debconf16|drizzle|ffmpeg|ffmpeg|fluxbox|freedesktop|freedombox|gallery|texmacs|haskell|jenkins|libreoffice|madwifi|mingw|openvas|openwrt|openbioinformatics|openembedded|openvoting|osunix|path64|plan9|postgresql|privoxy|smc|helios|tidesdk|tux4kids|yafaray|spi)$/ + +2016-01-01 * Test - correct tag + Expenses:Hosting 20.00 USD + ; Project: debian + Assets:Cash -20.00 USD + +2016-02-01 * Test - wrong tag + Expenses:Hosting 20.00 USD + ; Project: foo + Assets:Cash -20.00 USD + +test bal + -40.00 USD Assets:Cash + 40.00 USD Expenses:Hosting +-------------------- + 0 +__ERROR__ +Warning: "/home/tbm/tmp/src/ledger/test/regress/981.test", line 15: Metadata check failed for (Project: foo): (value =~ /^(0ad|ankur|aptosid|archlinux|chakra|debian|debconf14|debconf15|debconf16|drizzle|ffmpeg|ffmpeg|fluxbox|freedesktop|freedombox|gallery|texmacs|haskell|jenkins|libreoffice|madwifi|mingw|openvas|openwrt|openbioinformatics|openembedded|openvoting|osunix|path64|plan9|postgresql|privoxy|smc|helios|tidesdk|tux4kids|yafaray|spi)$/) +end test + +test reg --limit 'payee =~ /XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/' +end test + |