|
@@ -138,12 +138,20 @@
|
|
|
<!-- Command line -->
|
|
|
<h4 class="section-h4">Unit Tests</h4>
|
|
|
<p>You can run unit tests by providing a path to a folder containing all tests:</p>
|
|
|
- <pre><code>
|
|
|
+ <pre><code class="swift">
|
|
|
./unittest path_to_test_folder
|
|
|
</code></pre>
|
|
|
<p>You should obtain an output like:
|
|
|
<img src="images/unittest.png" width="666px" height="466px">
|
|
|
</p>
|
|
|
+
|
|
|
+ <h4 class="section-h4">Hello World</h4>
|
|
|
+ <p>A simple <strong>Hello World</strong> code in Gravity looks like</p>
|
|
|
+ <pre><code>
|
|
|
+ func main() {
|
|
|
+ System.print("Hello World!")
|
|
|
+ }
|
|
|
+ </code></pre>
|
|
|
|
|
|
</div>
|
|
|
<!-- END CONTENT -->
|