Skip to content

Commit

Permalink
no comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 5, 2024
1 parent 6a5e0dd commit 4789e4e
Show file tree
Hide file tree
Showing 91 changed files with 285 additions and 285 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public Fake() {
s -> new InputOf(
String.join(
"\n",
"# This is the default 64+ symbols comment in front of named abstract object.",
"# No comments.",
"[] > sprintf\n"
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ void discoversWithSeveralObjectsWithDifferentVersions(
.with("withVersions", true)
.withProgram(
"+alias org.eolang.txt.sprintf\n",
"# This is the default 64+ symbols comment in front of named abstract object.",
"# No comments.",
"[] > main",
" seq > @",
" QQ.io.stdout",
Expand Down Expand Up @@ -191,13 +191,13 @@ void discoversDifferentUnversionedObjectsFromDifferentVersionedObjects(@Mktmp fi
final Map<String, CommitHash> hashes = new CommitHashesMap.Fake();
final String first = String.join(
"\n",
"# This is the default 64+ symbols comment in front of named abstract object.",
"# No comments.",
"[] > sprintf",
" text > @"
);
final String second = String.join(
"\n",
"# This is the default 64+ symbols comment in front of named abstract object.",
"# No comments.",
"[] > sprintf",
" text|0.28.5 > @"
);
Expand Down
6 changes: 3 additions & 3 deletions eo-maven-plugin/src/test/java/org/eolang/maven/FakeMaven.java
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ FakeMaven withHelloWorld() throws IOException {
return this.withProgram(
"+alias stdout org.eolang.io.stdout",
"+package f\n",
"# This is the default 64+ symbols comment in front of named abstract object.",
"# No comments.",
"[x] > main",
" (stdout \"Hello!\" x).print > @"
);
Expand All @@ -361,7 +361,7 @@ FakeMaven withHelloWorld() throws IOException {
FakeMaven withVersionedHelloWorld() throws IOException {
return this.withProgram(
"+package f\n",
"# This is the default 64+ symbols comment in front of named abstract object.",
"# No comments.",
"[] > main",
" QQ.io.stdout|0.28.5 > @",
" \"Hello world\""
Expand All @@ -380,7 +380,7 @@ FakeMaven withVersionedProgram() throws IOException {
"+home https://objectionary.home",
"+package f",
"+version 0.0.0\n",
"# This is the default 64+ symbols comment in front of named abstract object.",
"# No comments.",
"[args] > main",
" seq|0.28.4 > @",
" QQ.io.stdout|0.28.5",
Expand Down
16 changes: 8 additions & 8 deletions eo-maven-plugin/src/test/java/org/eolang/maven/LintMojoTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void detectsCriticalErrorsSuccessfully(@Mktmp final Path temp) throws IOExceptio
final FakeMaven maven = new FakeMaven(temp)
.withProgram(
"+package f\n",
"# This is the default 64+ symbols comment in front of named abstract object.",
"# No comments.",
"[] > main",
" \"Hello world\""
);
Expand Down Expand Up @@ -122,9 +122,9 @@ void detectsWarningWithCorrespondingFlag(@Mktmp final Path temp) throws IOExcept
final FakeMaven maven = new FakeMaven(temp)
.withProgram(
"+package f\n",
"# This is the default 64+ symbols comment in front of named abstract object.",
"# No comments.",
"[] > main",
" # This is the default 64+ symbols comment in front of named abstract object.",
" # No comments.",
" [] > @",
" \"Hello world\" > @"
)
Expand All @@ -139,7 +139,7 @@ void detectsWarningWithCorrespondingFlag(@Mktmp final Path temp) throws IOExcept
new XMLDocument(
maven.result().get("target/6-lint/foo/x/main.xmir")
).nodes("//errors/error[@severity='warning']"),
Matchers.hasSize(Matchers.equalTo(2))
Matchers.hasSize(Matchers.equalTo(4))
);
}

Expand All @@ -149,9 +149,9 @@ void doesNotDetectWarningWithoutCorrespondingFlag(@Mktmp final Path temp) {
() -> new FakeMaven(temp)
.withProgram(
"+package f\n",
"# This is the default 64+ symbols comment in front of named abstract object.",
"# No comments.",
"[] > main",
" # This is the default 64+ symbols comment in front of named abstract object.",
" # No comments.",
" [] > x",
" \"Hello world\" > @"
)
Expand All @@ -169,7 +169,7 @@ void failsOptimizationOnError(@Mktmp final Path temp) {
.withProgram(
"+package f",
"+alias THIS-IS-WRONG org.eolang.io.stdout\n",
"# This is the default 64+ symbols comment in front of named abstract object.",
"# No comments.",
"[args] > main",
" (stdout \"Hello!\").print > @"
)
Expand All @@ -185,7 +185,7 @@ void failsOptimizationOnCritical(@Mktmp final Path temp) {
() -> new FakeMaven(temp)
.withProgram(
"+package f\n",
"# This is the default 64+ symbols comment in front of named abstract object.",
"# No comments.",
"[args] > main",
" seq > @",
" TRUE > x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ final class PhiMojoTest {
* Comment.
*/
private static final String COMMENT =
"# This is the default 64+ symbols comment in front of named abstract object.";
"# No comments.";

@Test
void convertsSimpleObjectToPhi(@Mktmp final Path temp, @RandomProgram final String program)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ void findsProbesWithVersionsInDifferentObjectionaries(@Mktmp final Path temp)
private static String[] program() {
return new String[]{
"+package org.eolang.custom\n",
"# This is the default 64+ symbols comment in front of named abstract object.",
"# No comments.",
"[] > main",
" QQ.io.stdout > @",
" QQ.txt.sprintf",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ void pullsFromProbes(@Mktmp final Path temp) throws IOException {
new FakeMaven(temp)
.withProgram(
"+package org.eolang.custom\n",
"# This is the default 64+ symbols comment in front of named abstract object.",
"# No comments.",
"[] > main",
" QQ.io.stdout > @",
" \"I am 18 years old\""
Expand Down Expand Up @@ -305,7 +305,7 @@ void showsWhereNotFoundWasDiscoveredAt(@Mktmp final Path tmp, final Logs out)
final FakeMaven mvn = new FakeMaven(tmp)
.withProgram(
"+package com.example\n",
"# This is the default 64+ symbols comment in front of named abstract object.",
"# No comments.",
"[] > main",
" org.eolang.org > @"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ void convertsValidXmirAndParsableEO(final boolean reversed, @Mktmp final Path te
throws Exception {
final Map<String, Path> map = new FakeMaven(temp)
.withProgram(
"# This is the default 64+ symbols comment in front of named abstract object.",
"# No comments.",
"[args] > app",
" QQ.io.stdout > @",
" \"Hello, world!\""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void getsFromDelegate() throws Exception {
BinarizeParseTest.TO_ADD_MESSAGE,
new TextOf(new OyIndexed(new Objectionary.Fake()).get("foo")).asString(),
Matchers.equalTo(
"# This is the default 64+ symbols comment in front of named abstract object.\n[] > sprintf\n"
"# No comments.\n[] > sprintf\n"
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
+package org.eolang.custom
+version 0.0.0

# This is the default 64+ symbols comment in front of named abstract object.
# No comments.
[] > creates-object
QQ.rust > r
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
+package org.eolang.custom
+version 0.0.0

# This is the default 64+ symbols comment in front of named abstract object.
# No comments.
[] > hello-world-1
QQ.rust > r
"""
Expand All @@ -41,7 +41,7 @@
"rand: 0.5.2"
true > @

# This is the default 64+ symbols comment in front of named abstract object.
# No comments.
[] > hello-world-2
QQ.rust > r
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
+package org.eolang.custom
+version 0.0.0

# This is the default 64+ symbols comment in front of named abstract object.
# No comments.
[] > incorrect-code
QQ.rust > r
"""
Expand Down
8 changes: 4 additions & 4 deletions eo-maven-plugin/src/test/resources/org/eolang/maven/mess.eo
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@

3.14 > pi

# This is the default 64+ symbols comment in front of named abstract object.
# No comments.
[n] > alpha
# This is the default 64+ symbols comment in front of named abstract object.
# No comments.
[] > x
a > pi
pi
Expand All @@ -47,9 +47,9 @@ alpha > beta
alpha
"Z"

# This is the default 64+ symbols comment in front of named abstract object.
# No comments.
[n x] > mess
# This is the default 64+ symbols comment in front of named abstract object.
# No comments.
[a] > test /int
n.hello > @
"Hello, world!"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ asserts:
- //java/text()[contains(., 'new PhWith(ret, 0')]
- //java/text()[contains(., 'new PhWith(ret, "text"')]
input: |
# This is the default 64+ symbols comment in front of named abstract object.
# No comments.
[] > main
stdout x:0 > print1
stdout x:text > print2
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ input: |
+package org.eolang
+version 0.0.0
# This is the default 64+ symbols comment in front of named abstract object.
# No comments.
[] > main
* 0 (* 1 2) > arr
eq > @
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@ asserts:
- //java[contains(text(), 'ret_1 = new PhWith(ret_1, 0, new PhDefault(new byte[] {(byte) 0x40, (byte) 0x0C, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00}));')]
- //java[contains(text(), 'ret = new PhWith(ret, 0, new PhDefault(new byte[] {(byte) 0x01, (byte) 0xAF}));')]
input: |
# This is the default 64+ symbols comment in front of named abstract object.
# No comments.
[] > t
true > @
# This is the default 64+ symbols comment in front of named abstract object.
# No comments.
[] > f
bool 00- > @
# This is the default 64+ symbols comment in front of named abstract object.
# No comments.
[] > i
42 > @
# This is the default 64+ symbols comment in front of named abstract object.
# No comments.
[] > f
number 3.5 > @
# This is the default 64+ symbols comment in front of named abstract object.
# No comments.
[] > b
01-AF > @
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ asserts:
- /program[not(errors)]
- //java[contains(text(), 'PhMethod(new PhMethod(rho, "ρ"), "ρ")')]
input: |
# This is the default 64+ symbols comment in front of named abstract object.
# No comments.
[x] > foo
$ > this
# This is the default 64+ symbols comment in front of named abstract object.
# No comments.
[] > xyz
# This is the default 64+ symbols comment in front of named abstract object.
# No comments.
[] > bar
this.x > @
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ asserts:
- //java[contains(text(), 'new PhLocated(ret_1, 10, 10, "Φ.bar.φ.α0")')]
- //java[contains(text(), 'new PhLocated(ret, 11, 2, "Φ.bar.five")')]
input: |
# This is the default 64+ symbols comment in front of named abstract object.
# No comments.
[] > foo
42 > @
# This is the default 64+ symbols comment in front of named abstract object.
# No comments.
[y] > other
43.plus y > @
# This is the default 64+ symbols comment in front of named abstract object.
# No comments.
[] > bar
42.plus 43 > @
int 5 > five
Loading

0 comments on commit 4789e4e

Please sign in to comment.