-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Complex number with imaginary part cannot be converted to Float
- Loading branch information
1 parent
c3852c7
commit 4387ccf
Showing
2 changed files
with
18 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from Standard.Base import all | ||
from Standard.Test import all | ||
import Standard.Base.Errors.Common.Type_Error | ||
|
||
import project.Data.Complex.Complex | ||
|
||
add_specs suite_builder = | ||
suite_builder.group "Complex Multi Value" group_builder-> | ||
group_builder.specify "Cannot convert to flow if it has imaginary part" <| | ||
c = Complex.new 1 5 | ||
Test.expect_panic Type_Error (c:Float) | ||
|
||
main filter=Nothing = | ||
suite = Test.build suite_builder-> | ||
add_specs suite_builder | ||
suite.run_with_filter filter |