From f87ad6a485a005890ae24b82caa643ef90c430e8 Mon Sep 17 00:00:00 2001 From: mo khan Date: Sat, 12 Oct 2019 14:39:39 -0600 Subject: add test for finding uid 0 --- test/uid_zero_test.bats | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/uid_zero_test.bats (limited to 'test/uid_zero_test.bats') diff --git a/test/uid_zero_test.bats b/test/uid_zero_test.bats new file mode 100644 index 0000000..397312e --- /dev/null +++ b/test/uid_zero_test.bats @@ -0,0 +1,9 @@ +#!/usr/bin/env bats + +load test_helper + +@test "it finds the user with uid 0" { + run ./bin/uid-zero test/fixtures/passwd + + assert_success $'root:0' +} -- cgit v1.2.3