examples/draw_operation: revamp the doc with a sample input/output
authorAlexis Laferrière <alexis.laf@xymus.net>
Fri, 28 Aug 2015 17:19:04 +0000 (13:19 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Sat, 29 Aug 2015 00:05:28 +0000 (20:05 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

examples/draw_operation.nit

index a5ad1d5..61f14eb 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-# Draws an arithmetic operation to the terminal
+# Sample program which draws an arithmetic operation to the terminal
+#
+# Output (and input) example:
+# ~~~nitish
+# Left operand: 23
+# Right operand: 15
+# Operator (+, -, *, /, %): +
+# Char to display: #
+# Size of text: 5
+# Space between digits: 1
+#       ##### #####
+#           #     #
+#       ##### #####
+#       #         #
+#       ##### #####
+#
+#         #   #####
+#   +    ##   #
+# +++++   #   #####
+#   +     #       #
+#       ##### #####
+#
+# __________________
+#
+#       ##### #####
+#           # #   #
+#       ##### #####
+#           # #   #
+#       ##### #####
+# ~~~
 module draw_operation
 
 `{