File: tests.bats

package info (click to toggle)
bats-support 0.3.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 180 kB
  • sloc: sh: 132; makefile: 4
file content (13 lines) | stat: -rw-r--r-- 289 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bats

bats_load_library "bats-support"

@test "batslib_ functions are available (positive)" {
	run batslib_is_single_line 'a' $'b\n'
	[ "$status" -eq 0 ]
}

@test "batslib_ functions are available (negative)" {
	run batslib_is_single_line 'a' $'b\nc'
	[ "$status" -eq 1 ]
}