unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob e04ff0471f35a81aec8e89a336601818f63ecc6b 1206 bytes (raw)
name: gnu/packages/patches/java-lambdatest-fix.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 
From 49645c94fc8bdbea342d6f96d46e0405b81b874c Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Sun, 19 Jun 2022 23:11:42 +0300
Subject: [PATCH] test: Fix tests

* src/test/java/de/tobiasroeser/lambdatest/AssertTest.java
  (testAssertEqualsInteger): Fix a regex so it will match the actual test
  output.

---
 src/test/java/de/tobiasroeser/lambdatest/AssertTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/de/tobiasroeser/lambdatest/AssertTest.java b/src/test/java/de/tobiasroeser/lambdatest/AssertTest.java
index fe2db12..5ef5ab3 100644
--- a/src/test/java/de/tobiasroeser/lambdatest/AssertTest.java
+++ b/src/test/java/de/tobiasroeser/lambdatest/AssertTest.java
@@ -51,7 +51,7 @@ public class AssertTest {
 		Assert.assertEquals(0, 0);
 		Assert.assertEquals(Integer.valueOf(0), 0);
 		Assert.assertEquals(0, Integer.valueOf(0));
-		intercept(AssertionError.class, "\\QActual 0 is not equal to 1.\\E", () -> {
+		intercept(AssertionError.class, "\\QActual false is not equal to true\\E", () -> {
 			Assert.assertEquals(0, 1);
 		});
 		intercept(AssertionError.class, "\\QActual 0 is not equal to 1.\\E", () -> {
-- 
2.25.1


debug log:

solving e04ff0471f ...
found e04ff0471f in https://yhetil.org/guix-patches/87r13j3zn1.fsf@gmail.com/

applying [1/1] https://yhetil.org/guix-patches/87r13j3zn1.fsf@gmail.com/
diff --git a/gnu/packages/patches/java-lambdatest-fix.patch b/gnu/packages/patches/java-lambdatest-fix.patch
new file mode 100644
index 0000000000..e04ff0471f

1:25: space before tab in indent.
 		Assert.assertEquals(0, 0);
1:26: space before tab in indent.
 		Assert.assertEquals(Integer.valueOf(0), 0);
1:27: space before tab in indent.
 		Assert.assertEquals(0, Integer.valueOf(0));
1:30: space before tab in indent.
 			Assert.assertEquals(0, 1);
1:31: space before tab in indent.
 		});
Checking patch gnu/packages/patches/java-lambdatest-fix.patch...
Applied patch gnu/packages/patches/java-lambdatest-fix.patch cleanly.
warning: squelched 3 whitespace errors
warning: 8 lines add whitespace errors.

index at:
100644 e04ff0471f35a81aec8e89a336601818f63ecc6b	gnu/packages/patches/java-lambdatest-fix.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).