-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix issue #3, grid crossings outside of grid
- Loading branch information
1 parent
dc53830
commit b1f43db
Showing
4 changed files
with
21 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
function issue3() | ||
r2 = Float64[-.1 8.1; -.1 -0.1; 8.1 -0.1; 8.1 8.1] | ||
grid = 0.5 | ||
width = height = 8; | ||
xmitr,rcvr = probePos(8,r2) | ||
data = genS(width,height,grid,xmitr,rcvr) | ||
for (j in 1:height) | ||
for (i in 1:width) | ||
Base.Test.@test all(1 .<= data[i,j][1] .<= 8) | ||
end #i | ||
end #j | ||
Any["All crossings inside grid" true]; | ||
end #function |
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 |
---|---|---|
|
@@ -2,5 +2,4 @@ using GenS | |
using Base.Test | ||
include("TestGenS.jl") | ||
|
||
# write your own tests here | ||
info(TestGenS.test_all()) |