Skip to content

Commit 99a4a8d

Browse files
add test
1 parent b9258aa commit 99a4a8d

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

note.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,10 @@ val x = new Rational(1,2)
55
println(s"${x/y}")
66
println(s"- ${y-x}")
77
println(x-1)`
8+
9+
| A | B | C | D |
10+
|:---|:---|:---|:---|
11+
| a | b | c | d |
12+
13+
814

src/test/scala/demo.sc

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,19 @@ new Rational(3,4)
5858
val y = new Rational(3,3)
5959
println(y.toString)
6060

61-
val x = new Rational(1,2)
62-
val rational: Rational = y.add(x)
63-
61+
//val x = new Rational(1,2)
62+
//val rational: Rational = y.add(x)
6463
//val max1: Rational = x.max(y)
65-
println(x.lessThan(y))
64+
//println(x.lessThan(y))
65+
66+
val increase = (x:Int) => x+1
67+
increase(10)
68+
increase(15)
69+
70+
val f = (_: Int) + (_: Int)
71+
f(4,5)
72+
73+
74+
6675

6776

0 commit comments

Comments
 (0)