<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Validate_unit_tests</title><link>https://sourceforge.net/p/simulates/wiki/Validate_unit_tests/</link><description>Recent changes to Validate_unit_tests</description><atom:link href="https://sourceforge.net/p/simulates/wiki/Validate_unit_tests/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 25 Jul 2017 13:43:00 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/simulates/wiki/Validate_unit_tests/feed" rel="self" type="application/rss+xml"/><item><title>Validate_unit_tests modified by Robert Kofler</title><link>https://sourceforge.net/p/simulates/wiki/Validate_unit_tests/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -1,7 +1,7 @@
 [TOC]

 # Introduction - unit tests
-To ensure proper execution of our DSL for describing TE sequences we implemented unit tests. Unit tests enable automated testing of the code. The code is treated as a black box where the input and the expected output is provided. A unit test just checks wheter the observed output agrees with the expected output.
+To ensure proper execution of our DSL we implemented unit tests. Unit tests enable automated testing of the code. The code is treated as a black box where the input and the expected output is provided. A unit test just checks wheter the observed output agrees with the expected output.

 Following an example of a unit test:
@@ -15,6 +15,9 @@
 ~~~~~
 The sequence *a* is *AAATTTAAA*. The unit test ensure that deletion of the intermediate three bases (*a\[4..6\]*) results in the sequence *AAAAAA*
 ## Run unit tests
+
+To run the Unit-tests and thus ensure proper execution of our DSL use the following commands:
+
 ~~~~~
 cd unittests
 python test-TEdefinitionlanguage.py
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Robert Kofler</dc:creator><pubDate>Tue, 25 Jul 2017 13:43:00 -0000</pubDate><guid>https://sourceforge.net315c864d5199b94c0145ca920228daa2417ff6ee</guid></item><item><title>Validate_unit_tests modified by Robert Kofler</title><link>https://sourceforge.net/p/simulates/wiki/Validate_unit_tests/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -13,8 +13,7 @@
           self.assertEqual(tt.getTESequence("a").sequence,"AAATTTAAA")
           self.assertEqual(tt.getTESequence("d").sequence,"AAAAAA")
 ~~~~~
-
-
+The sequence *a* is *AAATTTAAA*. The unit test ensure that deletion of the intermediate three bases (*a\[4..6\]*) results in the sequence *AAAAAA*
 ## Run unit tests
 ~~~~~
 cd unittests
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Robert Kofler</dc:creator><pubDate>Fri, 07 Jul 2017 16:28:56 -0000</pubDate><guid>https://sourceforge.netcbe85159d62be886f8d20aa0786ca0a2b06f5828</guid></item><item><title>Validate_unit_tests modified by Robert Kofler</title><link>https://sourceforge.net/p/simulates/wiki/Validate_unit_tests/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -6,6 +6,7 @@

 Following an example of a unit test:
 ~~~~~
+:::python
 def test_singledeletion(self):
           tt=self.tt
           tt.addDefinition("d=a[4..6]")
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Robert Kofler</dc:creator><pubDate>Fri, 07 Jul 2017 16:27:13 -0000</pubDate><guid>https://sourceforge.netbbdd37d2076367233689513190fa4271592b9423</guid></item><item><title>Validate_unit_tests modified by Robert Kofler</title><link>https://sourceforge.net/p/simulates/wiki/Validate_unit_tests/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -2,6 +2,16 @@

 # Introduction - unit tests
 To ensure proper execution of our DSL for describing TE sequences we implemented unit tests. Unit tests enable automated testing of the code. The code is treated as a black box where the input and the expected output is provided. A unit test just checks wheter the observed output agrees with the expected output.
+
+
+Following an example of a unit test:
+~~~~~
+def test_singledeletion(self):
+          tt=self.tt
+          tt.addDefinition("d=a[4..6]")
+          self.assertEqual(tt.getTESequence("a").sequence,"AAATTTAAA")
+          self.assertEqual(tt.getTESequence("d").sequence,"AAAAAA")
+~~~~~

 ## Run unit tests
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Robert Kofler</dc:creator><pubDate>Fri, 07 Jul 2017 16:26:40 -0000</pubDate><guid>https://sourceforge.net73c961a84f52ee96b13f05cab9a71942e3357948</guid></item><item><title>Validate_unit_tests modified by Robert Kofler</title><link>https://sourceforge.net/p/simulates/wiki/Validate_unit_tests/</link><description>&lt;div class="markdown_content"&gt;&lt;div class="toc"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#introduction-unit-tests"&gt;Introduction - unit tests&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="#run-unit-tests"&gt;Run unit tests&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;h1 id="introduction-unit-tests"&gt;Introduction - unit tests&lt;/h1&gt;
&lt;p&gt;To ensure proper execution of our DSL for describing TE sequences we implemented unit tests. Unit tests enable automated testing of the code. The code is treated as a black box where the input and the expected output is provided. A unit test just checks wheter the observed output agrees with the expected output.&lt;/p&gt;
&lt;h2 id="run-unit-tests"&gt;Run unit tests&lt;/h2&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;cd unittests
python test-TEdefinitionlanguage.py
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;you should get something like this:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;Ran 33 tests in 0.007s

OK
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;This indicates that the DSL is executed properly&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Robert Kofler</dc:creator><pubDate>Fri, 07 Jul 2017 16:23:51 -0000</pubDate><guid>https://sourceforge.net89e732a3f8c146e65f2c03703dd881e06f7b9bd4</guid></item></channel></rss>