File: doc.t

package info (click to toggle)
freebayes 1.3.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,252 kB
  • sloc: cpp: 125,930; ansic: 4,533; sh: 1,077; python: 477; asm: 271; lisp: 70; perl: 27; makefile: 20
file content (15 lines) | stat: -rw-r--r-- 352 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

question() { echo yes; }

PATH=lib:$PATH
source test-simple.bash tests 5

ok 0                    '0 is true (other numbers are false)'

answer=$(question "...?")
ok [ $answer == yes ]   'The answer is yes!'
ok [[ $answer =~ ^y ]]  'The answer begins with y'

ok true                 'true is ok'
ok '! false'            '! false is true'