on master help sign in
Update test.swift
fdef133Akshat Gadhwal
tests/syntax-tests/source/Swift/test.swift+2−2
@@ -22,7 +22,7 @@ class Friend : Comparable {
22 }
22 }
23}
23}
24func < (lhs: Friend, rhs: Friend) -> Bool {
24func < (lhs: Friend, rhs: Friend) -> Bool {
25− return lhs.age < rhs.age } func > (lhs: Friend, rhs: Friend) -> Bool {
25+ return lhs.age < rhs.age }; func > (lhs: Friend, rhs: Friend) -> Bool {
26 return lhs.age > rhs.age
26 return lhs.age > rhs.age
27}
27}
28func == (lhs: Friend, rhs: Friend) -> Bool {
28func == (lhs: Friend, rhs: Friend) -> Bool {
@@ -37,7 +37,7 @@ func == (lhs: Friend, rhs: Friend) -> Bool {
37 let friend1 = Friend(name: "Sergey", age: 35)
37 let friend1 = Friend(name: "Sergey", age: 35)
38 let friend2 = Friend(name: "Sergey", age: 30)
38 let friend2 = Friend(name: "Sergey", age: 30)
39
39
40− print("\Compare Friend object. Same person? (friend1 == friend2)")
40+ print("Compare Friend object. Same person? (friend1 == friend2)")
41
41
42func sayHelloWorld() {
42func sayHelloWorld() {
43 print("Hello World")
43 print("Hello World")