added start and end triggers

master
puskin94 2015-03-07 19:41:33 +01:00
parent 4e7f2c8760
commit 0903c13714
2 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,8 @@ attribution github => ["https://github.com/puskin94", "puskin94"],
github => ["https://github.com/jmvbxx", "jmvbxx"];
triggers startend => "pi", "digits of pi","π","digits of π", "pi to", "π to";
triggers start => "pi","π", "pi to", "π to";
triggers end => "digits of pi", "digits of π";
# $PI now have 1 000 000 decimals

2
t/Pi.t
View File

@ -17,7 +17,7 @@ ddg_goodie_test(
operation => ["First 23 digits of Pi"],
result => "3.14159265358979323846264"
}),
'8 pi' => test_zci("3.14159265",
'π 8' => test_zci("3.14159265",
structured_answer => {
input => [],
operation => ["First 8 digits of Pi"],