Toby Inkster avatar Toby Inkster committed 1d247c1

newer version of Wenity that supports --test-command

Comments (0)

Files changed (2)

Binary file modified.

 use Alien::Wenity;
 use IO::Prompt::Tiny qw(prompt);
 
+{
+	my $cmd = sprintf(
+		'"%s" --test-command',
+		Alien::Wenity->path,
+	);
+	like(qx{$cmd}, qr{\bok\b});
+}
+
 my $interactive = prompt("Interactive tests? (y/n)", "n");
-
 if ($interactive !~ /y/i)
 {
 	pass;
 	done_testing;
 	exit;
 }
-
-my $cmd = sprintf(
-	'"%s" --entry --text "Type PASS to pass the test."',
-	Alien::Wenity->path,
-);
-
-like(qx{$cmd}, qr{pass}i);
+else
+{
+	my $cmd = sprintf(
+		'"%s" --entry --text "Type PASS to pass the test."',
+		Alien::Wenity->path,
+	);
+	like(qx{$cmd}, qr{pass}i);
+}
 
 done_testing;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.