From 17521490f73ee6f9c728f310a1bfcb268a183eb8 Mon Sep 17 00:00:00 2001 From: lee Date: Sun, 23 Feb 2020 21:07:27 +0000 Subject: [PATCH] correcting and adding cases to lcm subject --- subjects/lcm.en.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/subjects/lcm.en.md b/subjects/lcm.en.md index 98688f3e7..e58d34f6a 100644 --- a/subjects/lcm.en.md +++ b/subjects/lcm.en.md @@ -15,7 +15,7 @@ This means that: Write a function, `lcm`, that returns least common multiple. -All arguments tested will be positive `int` values. +It will be tested with positive `int` values and `0`. ### Expected function @@ -32,13 +32,9 @@ Here is a possible program to test your function : ```go package main -import ( - "fmt" - piscine ".." -) - func main() { - fmt.Println(piscine.Lcm(2, 7)) + fmt.Println(Lcm(2, 7)) + fmt.Println(Lcm(0, 4)) } ``` @@ -48,5 +44,6 @@ func main() { student@ubuntu:~/[[ROOT]]/test$ go build student@ubuntu:~/[[ROOT]]/test$ ./test 14 +0 student@ubuntu:~/[[ROOT]]/test$ ```