@@ -2861,7 +2861,9 @@ SetTestSuite.test("isSubsetOf.Set.Set") {
2861
2861
let s2 = Set ( [ 1010 , 2020 , 3030 ] )
2862
2862
expectTrue ( Set < Int > ( ) . isSubset ( of: s1) )
2863
2863
expectFalse ( s1. isSubset ( of: Set < Int > ( ) ) )
2864
+ expectTrue ( Set < Int > ( ) . isSubset ( of: Set < Int > ( ) ) )
2864
2865
expectTrue ( s1. isSubset ( of: s1) )
2866
+ expectFalse ( s1. isSubset ( of: s2) )
2865
2867
expectTrue ( s2. isSubset ( of: s1) )
2866
2868
}
2867
2869
@@ -2874,9 +2876,13 @@ SetTestSuite.test("isSubsetOf.Set.Sequence") {
2874
2876
2875
2877
SetTestSuite . test ( " isStrictSubsetOf.Set.Set " ) {
2876
2878
let s1 = Set ( [ 1010 , 2020 , 3030 , 4040 , 5050 , 6060 ] )
2879
+ let s2 = Set ( [ 1010 , 2020 , 3030 ] )
2877
2880
expectTrue ( Set < Int > ( ) . isStrictSubset ( of: s1) )
2878
2881
expectFalse ( s1. isStrictSubset ( of: Set < Int > ( ) ) )
2882
+ expectFalse ( Set < Int > ( ) . isStrictSubset ( of: Set < Int > ( ) ) )
2879
2883
expectFalse ( s1. isStrictSubset ( of: s1) )
2884
+ expectFalse ( s1. isStrictSubset ( of: s2) )
2885
+ expectTrue ( s2. isStrictSubset ( of: s1) )
2880
2886
}
2881
2887
2882
2888
SetTestSuite . test ( " isStrictSubsetOf.Set.Sequence " ) {
@@ -2891,9 +2897,10 @@ SetTestSuite.test("isSupersetOf.Set.Set") {
2891
2897
let s2 = Set ( [ 1010 , 2020 , 3030 ] )
2892
2898
expectTrue ( s1. isSuperset ( of: Set < Int > ( ) ) )
2893
2899
expectFalse ( Set < Int > ( ) . isSuperset ( of: s1) )
2900
+ expectTrue ( Set < Int > ( ) . isSuperset ( of: Set < Int > ( ) ) )
2894
2901
expectTrue ( s1. isSuperset ( of: s1) )
2895
2902
expectTrue ( s1. isSuperset ( of: s2) )
2896
- expectFalse ( Set < Int > ( ) . isSuperset ( of: s1) )
2903
+ expectFalse ( s2 . isSuperset ( of: s1) )
2897
2904
}
2898
2905
2899
2906
SetTestSuite . test ( " isSupersetOf.Set.Sequence " ) {
@@ -2906,13 +2913,15 @@ SetTestSuite.test("isSupersetOf.Set.Sequence") {
2906
2913
expectFalse ( Set < Int > ( ) . isSuperset ( of: s1) )
2907
2914
}
2908
2915
2909
- SetTestSuite . test ( " strictSuperset .Set.Set" ) {
2916
+ SetTestSuite . test ( " isStrictSuperset .Set.Set" ) {
2910
2917
let s1 = Set ( [ 1010 , 2020 , 3030 , 4040 , 5050 , 6060 ] )
2911
2918
let s2 = Set ( [ 1010 , 2020 , 3030 ] )
2912
2919
expectTrue ( s1. isStrictSuperset ( of: Set < Int > ( ) ) )
2913
2920
expectFalse ( Set < Int > ( ) . isStrictSuperset ( of: s1) )
2921
+ expectFalse ( Set < Int > ( ) . isStrictSuperset ( of: Set < Int > ( ) ) )
2914
2922
expectFalse ( s1. isStrictSuperset ( of: s1) )
2915
2923
expectTrue ( s1. isStrictSuperset ( of: s2) )
2924
+ expectFalse ( s2. isStrictSuperset ( of: s1) )
2916
2925
}
2917
2926
2918
2927
SetTestSuite . test ( " strictSuperset.Set.Sequence " ) {
0 commit comments