File: doc.t

package info (click to toggle)
freebayes 1.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,628 kB
  • sloc: cpp: 121,209; ansic: 3,925; sh: 911; python: 455; asm: 271; makefile: 213; perl: 27
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'