-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mostly NULL -> nullptr C++ conversions & @test()
There's definitely something funky going on with decorators, but I can't see what it is right now. I will have to dive deeper into that, before I can use @test() more widely.
- Loading branch information
1 parent
9d3a9cf
commit 70bcf46
Showing
6 changed files
with
87 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { test, Assert } from 'unittest' | ||
|
||
# @test() | ||
function test_process_can_run_returning_status_code() { | ||
var result = Process.run('ls') | ||
|
||
Assert.that(result.status_code).is_equal_to(0) | ||
} | ||
|
||
# @test() | ||
function test_process_output_is_a_string() { | ||
var result = Process.run('ls') | ||
|
||
Assert.that(result.output).is_of_type(String) | ||
} | ||
|
||
# @test() | ||
function test_process_sets_the_command_used() { | ||
var result = Process.run('ls') | ||
|
||
Assert.that(result.command).is_equal_to('ls') | ||
} | ||
|
||
# @test() | ||
function test_process_shows_failure_in_status_code() { | ||
var result = Process.run('unknown') | ||
|
||
Assert.that(result.status_code).is_not_equal_to(0) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters