File: tests-negative.bats

package info (click to toggle)
bats-assert 2.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 264 kB
  • sloc: sh: 517; makefile: 4
file content (9 lines) | stat: -rw-r--r-- 223 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bats

bats_load_library "bats-support"
bats_load_library "bats-assert"

@test 'assert_output works' {
	run echo "This test is supposed to fail, to test error reporting"
	assert_output --partial - <<< "foo"
}