-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rowan Cockett
committed
Oct 30, 2015
1 parent
b8fe0cf
commit 7106b2b
Showing
3 changed files
with
67 additions
and
57 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 |
---|---|---|
@@ -1 +1 @@ | ||
import Linear | ||
import Linear, DCfwd |
8 changes: 6 additions & 2 deletions
8
tests/examples/test_example_linear.py → tests/examples/test_examples.py
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 |
---|---|---|
@@ -1,13 +1,17 @@ | ||
import unittest | ||
import sys | ||
from SimPEG.Examples import Linear | ||
from SimPEG.Examples import Linear, DCfwd | ||
import numpy as np | ||
|
||
class TestLinear(unittest.TestCase): | ||
|
||
def test_running(self): | ||
Linear.run(100, plotIt=False) | ||
self.assertTrue(True) | ||
|
||
class TestDCfwd(unittest.TestCase): | ||
def test_running(self): | ||
DCfwd.run(plotIt=False) | ||
self.assertTrue(True) | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |