From: Alexis Laferrière Date: Fri, 28 Aug 2015 17:19:04 +0000 (-0400) Subject: examples/draw_operation: revamp the doc with a sample input/output X-Git-Tag: v0.7.8~47^2~4 X-Git-Url: http://nitlanguage.org examples/draw_operation: revamp the doc with a sample input/output Signed-off-by: Alexis Laferrière --- diff --git a/examples/draw_operation.nit b/examples/draw_operation.nit index a5ad1d5..61f14eb 100644 --- a/examples/draw_operation.nit +++ b/examples/draw_operation.nit @@ -14,7 +14,36 @@ # 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 `{