Skip to content

Commit

Permalink
added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FelicienC committed Nov 21, 2019
1 parent bc8438f commit 11ac510
Show file tree
Hide file tree
Showing 95 changed files with 80 additions and 57 deletions.
Binary file modified .DS_Store
Binary file not shown.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ install:
- conda install coveralls

script:
- python --version
- ./runtests.sh
- python code/test.py

after_success:
- coveralls
Binary file added code/.DS_Store
Binary file not shown.
Binary file removed code/__pycache__/dubins.cpython-36.pyc
Binary file not shown.
Binary file removed code/__pycache__/environment.cpython-36.pyc
Binary file not shown.
Binary file removed code/__pycache__/obstacle.cpython-36.pyc
Binary file not shown.
Binary file removed code/__pycache__/rrt.cpython-36.pyc
Binary file not shown.
24 changes: 24 additions & 0 deletions code/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from dubins import Dubins
from environment import Environment

import unittest

class TestSum(unittest.TestCase):

def test_dubins(self):
"""
Test that the class Dubins initializes
"""
myDub = Dubins(10, 1)
#self.assertEqual(result, 6)

def test_environment(self):
"""
Test that the class Environment initializes and plots
"""
myEnv = Environment((100, 100), 200)
myEnv.plot()


if __name__ == '__main__':
unittest.main()
Binary file modified docs/.DS_Store
Binary file not shown.
22 changes: 11 additions & 11 deletions docs/Dubins.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

<title>Dubins &mdash; RRT-Dubins 0.0.1 documentation</title>

<link rel="stylesheet" type="text/css" href="_static/css/spc-bootstrap.css">
<link rel="stylesheet" type="text/css" href="_static/css/spc-extend.css">
<link rel="stylesheet" href="_static/scipy.css" type="text/css" >
<link rel="stylesheet" href="_static/pygments.css" type="text/css" >
<link rel="stylesheet" type="text/css" href="static/css/spc-bootstrap.css">
<link rel="stylesheet" type="text/css" href="static/css/spc-extend.css">
<link rel="stylesheet" href="static/scipy.css" type="text/css" >
<link rel="stylesheet" href="static/pygments.css" type="text/css" >

<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
Expand All @@ -20,10 +20,10 @@
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/js/copybutton.js"></script>
<script type="text/javascript" src="static/jquery.js"></script>
<script type="text/javascript" src="static/underscore.js"></script>
<script type="text/javascript" src="static/doctools.js"></script>
<script type="text/javascript" src="static/js/copybutton.js"></script>
<link rel="index" title="Index" href="genindex.html" >
<link rel="search" title="Search" href="search.html" >
<link rel="top" title="RRT-Dubins 0.0.1 documentation" href="index.html" >
Expand All @@ -34,7 +34,7 @@
<div class="container">
<div class="top-scipy-org-logo-header">
<a href="index.html">
<img style="border: 0;" alt="Volocopter" src="_static/img/logo.png"></a>
<img style="border: 0;" alt="Volocopter" src="static/img/logo.png"></a>
</div>
</div>
</div>
Expand Down Expand Up @@ -727,7 +727,7 @@ <h1>Dubins<a class="headerlink" href="#dubins" title="Permalink to this headline
<div class="spc-rightsidebar span3">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="index.html">
<img class="logo" src="_static/scipyshiny_small.png" alt="Logo">
<img class="logo" src="static/scipyshiny_small.png" alt="Logo">
</a></p>
<h4>Previous topic</h4>
<p class="topless"><a href="index.html"
Expand Down Expand Up @@ -767,4 +767,4 @@ <h3>This Page</h3>
</div>
</div>
</body>
</html>
</html>
22 changes: 11 additions & 11 deletions docs/Environment.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

<title>Environment &mdash; RRT-Dubins 0.0.1 documentation</title>

<link rel="stylesheet" type="text/css" href="_static/css/spc-bootstrap.css">
<link rel="stylesheet" type="text/css" href="_static/css/spc-extend.css">
<link rel="stylesheet" href="_static/scipy.css" type="text/css" >
<link rel="stylesheet" href="_static/pygments.css" type="text/css" >
<link rel="stylesheet" type="text/css" href="static/css/spc-bootstrap.css">
<link rel="stylesheet" type="text/css" href="static/css/spc-extend.css">
<link rel="stylesheet" href="static/scipy.css" type="text/css" >
<link rel="stylesheet" href="static/pygments.css" type="text/css" >

<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
Expand All @@ -20,10 +20,10 @@
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/js/copybutton.js"></script>
<script type="text/javascript" src="static/jquery.js"></script>
<script type="text/javascript" src="static/underscore.js"></script>
<script type="text/javascript" src="static/doctools.js"></script>
<script type="text/javascript" src="static/js/copybutton.js"></script>
<link rel="index" title="Index" href="genindex.html" >
<link rel="search" title="Search" href="search.html" >
<link rel="top" title="RRT-Dubins 0.0.1 documentation" href="index.html" >
Expand All @@ -33,7 +33,7 @@
<div class="container">
<div class="top-scipy-org-logo-header">
<a href="index.html">
<img style="border: 0;" alt="Volocopter" src="_static/img/logo.png"></a>
<img style="border: 0;" alt="Volocopter" src="static/img/logo.png"></a>
</div>
</div>
</div>
Expand Down Expand Up @@ -153,7 +153,7 @@ <h1>Environment<a class="headerlink" href="#environment" title="Permalink to thi
<div class="spc-rightsidebar span3">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="index.html">
<img class="logo" src="_static/scipyshiny_small.png" alt="Logo">
<img class="logo" src="static/scipyshiny_small.png" alt="Logo">
</a></p>
<h3>This Page</h3>
<div>
Expand Down Expand Up @@ -190,4 +190,4 @@ <h3>This Page</h3>
</div>
</div>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ help:
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
22 changes: 11 additions & 11 deletions docs/Obstacles.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

<title>Obstacles &mdash; RRT-Dubins 0.0.1 documentation</title>

<link rel="stylesheet" type="text/css" href="_static/css/spc-bootstrap.css">
<link rel="stylesheet" type="text/css" href="_static/css/spc-extend.css">
<link rel="stylesheet" href="_static/scipy.css" type="text/css" >
<link rel="stylesheet" href="_static/pygments.css" type="text/css" >
<link rel="stylesheet" type="text/css" href="static/css/spc-bootstrap.css">
<link rel="stylesheet" type="text/css" href="static/css/spc-extend.css">
<link rel="stylesheet" href="static/scipy.css" type="text/css" >
<link rel="stylesheet" href="static/pygments.css" type="text/css" >

<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
Expand All @@ -20,10 +20,10 @@
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/js/copybutton.js"></script>
<script type="text/javascript" src="static/jquery.js"></script>
<script type="text/javascript" src="static/underscore.js"></script>
<script type="text/javascript" src="static/doctools.js"></script>
<script type="text/javascript" src="static/js/copybutton.js"></script>
<link rel="index" title="Index" href="genindex.html" >
<link rel="search" title="Search" href="search.html" >
<link rel="top" title="RRT-Dubins 0.0.1 documentation" href="index.html" >
Expand All @@ -33,7 +33,7 @@
<div class="container">
<div class="top-scipy-org-logo-header">
<a href="index.html">
<img style="border: 0;" alt="Volocopter" src="_static/img/logo.png"></a>
<img style="border: 0;" alt="Volocopter" src="static/img/logo.png"></a>
</div>
</div>
</div>
Expand Down Expand Up @@ -139,7 +139,7 @@
<div class="spc-rightsidebar span3">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="index.html">
<img class="logo" src="_static/scipyshiny_small.png" alt="Logo">
<img class="logo" src="static/scipyshiny_small.png" alt="Logo">
</a></p>
<h3>This Page</h3>
<div>
Expand Down Expand Up @@ -176,4 +176,4 @@ <h3>This Page</h3>
</div>
</div>
</body>
</html>
</html>
22 changes: 11 additions & 11 deletions docs/RRT.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

<title>Rapidly Exploring Random Tree &mdash; RRT-Dubins 0.0.1 documentation</title>

<link rel="stylesheet" type="text/css" href="_static/css/spc-bootstrap.css">
<link rel="stylesheet" type="text/css" href="_static/css/spc-extend.css">
<link rel="stylesheet" href="_static/scipy.css" type="text/css" >
<link rel="stylesheet" href="_static/pygments.css" type="text/css" >
<link rel="stylesheet" type="text/css" href="static/css/spc-bootstrap.css">
<link rel="stylesheet" type="text/css" href="static/css/spc-extend.css">
<link rel="stylesheet" href="static/scipy.css" type="text/css" >
<link rel="stylesheet" href="static/pygments.css" type="text/css" >

<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
Expand All @@ -20,10 +20,10 @@
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/js/copybutton.js"></script>
<script type="text/javascript" src="static/jquery.js"></script>
<script type="text/javascript" src="static/underscore.js"></script>
<script type="text/javascript" src="static/doctools.js"></script>
<script type="text/javascript" src="static/js/copybutton.js"></script>
<link rel="index" title="Index" href="genindex.html" >
<link rel="search" title="Search" href="search.html" >
<link rel="top" title="RRT-Dubins 0.0.1 documentation" href="index.html" >
Expand All @@ -33,7 +33,7 @@
<div class="container">
<div class="top-scipy-org-logo-header">
<a href="index.html">
<img style="border: 0;" alt="Volocopter" src="_static/img/logo.png"></a>
<img style="border: 0;" alt="Volocopter" src="static/img/logo.png"></a>
</div>
</div>
</div>
Expand Down Expand Up @@ -309,7 +309,7 @@
<div class="spc-rightsidebar span3">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="index.html">
<img class="logo" src="_static/scipyshiny_small.png" alt="Logo">
<img class="logo" src="static/scipyshiny_small.png" alt="Logo">
</a></p>
<h3>This Page</h3>
<div>
Expand Down Expand Up @@ -346,4 +346,4 @@ <h3>This Page</h3>
</div>
</div>
</body>
</html>
</html>
20 changes: 10 additions & 10 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

<title>RRT-Dubins’ documentation &mdash; RRT-Dubins 0.0.1 documentation</title>

<link rel="stylesheet" type="text/css" href="_static/css/spc-bootstrap.css">
<link rel="stylesheet" type="text/css" href="_static/css/spc-extend.css">
<link rel="stylesheet" href="_static/scipy.css" type="text/css" >
<link rel="stylesheet" href="_static/pygments.css" type="text/css" >
<link rel="stylesheet" type="text/css" href="static/css/spc-bootstrap.css">
<link rel="stylesheet" type="text/css" href="static/css/spc-extend.css">
<link rel="stylesheet" href="static/scipy.css" type="text/css" >
<link rel="stylesheet" href="static/pygments.css" type="text/css" >

<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
Expand All @@ -20,10 +20,10 @@
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/js/copybutton.js"></script>
<script type="text/javascript" src="static/jquery.js"></script>
<script type="text/javascript" src="static/underscore.js"></script>
<script type="text/javascript" src="static/doctools.js"></script>
<script type="text/javascript" src="static/js/copybutton.js"></script>
<link rel="index" title="Index" href="genindex.html" >
<link rel="search" title="Search" href="search.html" >
<link rel="top" title="RRT-Dubins 0.0.1 documentation" href="#" >
Expand All @@ -34,7 +34,7 @@
<div class="container">
<div class="top-scipy-org-logo-header">
<a href="#">
<img style="border: 0;" alt="Volocopter" src="_static/img/logo.png"></a>
<img style="border: 0;" alt="Volocopter" src="static/img/logo.png"></a>
</div>
</div>
</div>
Expand Down Expand Up @@ -116,7 +116,7 @@ <h1>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Pe
<div class="spc-rightsidebar span3">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="#">
<img class="logo" src="_static/scipyshiny_small.png" alt="Logo">
<img class="logo" src="static/scipyshiny_small.png" alt="Logo">
</a></p>
<h3><a href="#">Table Of Contents</a></h3>
<ul>
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.

0 comments on commit 11ac510

Please sign in to comment.