Skip to content

Commit 4af3db1

Browse files
committed
Add more tests
1 parent 102f86d commit 4af3db1

File tree

4 files changed

+30
-2
lines changed

4 files changed

+30
-2
lines changed

src/Function/Bijection/Strict.agda

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,13 @@ f ∘ g = record
120120
; surjective = Surjection.surjective (Surj._∘_ (surjection f) (surjection g))
121121
}
122122
} where open Bijection
123+
124+
private
125+
test : {a b} {A : Setoid a b} {f g h : Bijection A A} (f ∘ g) ∘ h ≡ f ∘ (g ∘ h)
126+
test = P.refl
127+
128+
testid : {a b} {A : Setoid a b} {f : Bijection A A} f ∘ id ≡ f
129+
testid = P.refl
130+
131+
idtest : {a b} {A : Setoid a b} {f : Bijection A A} id ∘ f ≡ f
132+
idtest = P.refl

src/Function/Inverse/Strict.agda

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,5 +189,11 @@ zip t f pres eq₁ eq₂ = record
189189
} where open Inverse
190190

191191
private
192-
test : {a b} {A : Setoid a b} {f g h : Inverse A A} f ∘ (g ∘ h)(f ∘ g) ∘ h
192+
test : {a b} {A : Setoid a b} {f g h : Inverse A A} (f ∘ g) ∘ h ≡ f ∘ (g ∘ h)
193193
test = P.refl
194+
195+
testid : {a b} {A : Setoid a b} {f : Inverse A A} f ∘ id ≡ f
196+
testid = P.refl
197+
198+
idtest : {a b} {A : Setoid a b} {f : Inverse A A} id ∘ f ≡ f
199+
idtest = P.refl

src/Function/LeftInverse/Strict.agda

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,9 @@ _∘_ {F = F} f g = record
150150
private
151151
test : {a b} {A : Setoid a b} {f g h : LeftInverse A A} (f ∘ g) ∘ h ≡ f ∘ (g ∘ h)
152152
test = P.refl
153+
154+
testid : {a b} {A : Setoid a b} {f : LeftInverse A A} f ∘ id ≡ f
155+
testid = P.refl
156+
157+
idtest : {a b} {A : Setoid a b} {f : LeftInverse A A} id ∘ f ≡ f
158+
idtest = P.refl

src/Function/Surjection/Strict.agda

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,5 +126,11 @@ f ∘ g = record
126126
g∘f = Left._∘_ (right-inverse g) (right-inverse f)
127127

128128
private
129-
test : {a b} {A : Setoid a b} {f g h : Surjection A A} f ∘ (g ∘ h)(f ∘ g) ∘ h
129+
test : {a b} {A : Setoid a b} {f g h : Surjection A A} (f ∘ g) ∘ h ≡ f ∘ (g ∘ h)
130130
test = P.refl
131+
132+
testid : {a b} {A : Setoid a b} {f : Surjection A A} f ∘ id ≡ f
133+
testid = P.refl
134+
135+
idtest : {a b} {A : Setoid a b} {f : Surjection A A} id ∘ f ≡ f
136+
idtest = P.refl

0 commit comments

Comments
 (0)