mirror of
https://github.com/zardus/ctf-tools
synced 2025-03-04 15:17:12 +00:00
add testcase for yafu
This commit is contained in:
parent
e9028d6708
commit
a91188993d
1 changed files with 6 additions and 0 deletions
6
yafu/test
Executable file
6
yafu/test
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
RESULT=$(yafu 'factor(10)' | grep "^P" | tr -d '\n')
|
||||
[ "$RESULT" == "P1 = 2P1 = 5" ] || exit 1
|
||||
|
||||
yafu 'factor(427836528347651349523452345)' | grep "^P" | grep -q 3290292219611
|
Loading…
Add table
Reference in a new issue