Skip to content

Commit

Permalink
env: rework test with rig
Browse files Browse the repository at this point in the history
  • Loading branch information
mengzhuo committed Sep 24, 2024
1 parent 3b9b63d commit 1776ea6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 25 deletions.
17 changes: 17 additions & 0 deletions src/env/env_nix_test.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import common.testing

const rig = testing.prepare_rig(util:'env')

fn testsuite_begin() {
rig.assert_platform_util()
}

fn test_help_and_version() {
rig.assert_help_and_version_options_work()
}

fn test_compare() {
rig.assert_same_results('')
rig.assert_same_results('-0')
rig.assert_same_results('-u PATH')
}
25 changes: 0 additions & 25 deletions src/env/env_test.v

This file was deleted.

0 comments on commit 1776ea6

Please sign in to comment.