Skip to content

Commit

Permalink
Addd end-to-end test for output comments; removed comment doc tags en…
Browse files Browse the repository at this point in the history
…d-to-end test

Continues on #506. Opens #507.
  • Loading branch information
Josh Goldberg committed Oct 28, 2018
1 parent cd58e1e commit ae0e9de
Show file tree
Hide file tree
Showing 23 changed files with 94 additions and 118 deletions.
7 changes: 0 additions & 7 deletions test/end-to-end/Comments/blocks.cs

This file was deleted.

7 changes: 0 additions & 7 deletions test/end-to-end/Comments/blocks.gls

This file was deleted.

7 changes: 0 additions & 7 deletions test/end-to-end/Comments/blocks.java

This file was deleted.

7 changes: 0 additions & 7 deletions test/end-to-end/Comments/blocks.js

This file was deleted.

7 changes: 0 additions & 7 deletions test/end-to-end/Comments/blocks.py

This file was deleted.

7 changes: 0 additions & 7 deletions test/end-to-end/Comments/blocks.rb

This file was deleted.

7 changes: 0 additions & 7 deletions test/end-to-end/Comments/blocks.ts

This file was deleted.

15 changes: 0 additions & 15 deletions test/end-to-end/Comments/docs.cs

This file was deleted.

9 changes: 0 additions & 9 deletions test/end-to-end/Comments/docs.gls

This file was deleted.

9 changes: 0 additions & 9 deletions test/end-to-end/Comments/docs.java

This file was deleted.

9 changes: 0 additions & 9 deletions test/end-to-end/Comments/docs.js

This file was deleted.

9 changes: 0 additions & 9 deletions test/end-to-end/Comments/docs.py

This file was deleted.

9 changes: 0 additions & 9 deletions test/end-to-end/Comments/docs.rb

This file was deleted.

9 changes: 0 additions & 9 deletions test/end-to-end/Comments/docs.ts

This file was deleted.

20 changes: 20 additions & 0 deletions test/end-to-end/Comments/index.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//
using System;

namespace Comments
{
class Index
{
public static void Main()
{
/*
aaa bbb ccc
*/

// Console.WriteLine("Hello, world!")
Console.WriteLine("Hello, world!");
}
}
}
//
6 changes: 6 additions & 0 deletions test/end-to-end/Comments/index.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
</Project>
15 changes: 15 additions & 0 deletions test/end-to-end/Comments/index.gls
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
-
file start : Comments Index
main context start
main start
comment block start
comment block
comment block : aaa bbb ccc
comment block end

comment line : { print : ("Hello, world!") }
print : ("Hello, world!")
main end
main context end
file end
-
15 changes: 15 additions & 0 deletions test/end-to-end/Comments/index.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
package comments;

class Index {
public static void main(String[] args) {
/*
aaa bbb ccc
*/

// System.out.println("Hello, world!")
System.out.println("Hello, world!");
}
}
//
9 changes: 9 additions & 0 deletions test/end-to-end/Comments/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//
/*
aaa bbb ccc
*/

// console.log("Hello, world!")
console.log("Hello, world!");
//
10 changes: 10 additions & 0 deletions test/end-to-end/Comments/index.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#
if __name__ == "__main__":
"""
aaa bbb ccc
"""

# print("Hello, world!")
print("Hello, world!")
#
9 changes: 9 additions & 0 deletions test/end-to-end/Comments/index.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
=begin
aaa bbb ccc
=end

# puts "Hello, world!"
puts "Hello, world!"
#
9 changes: 9 additions & 0 deletions test/end-to-end/Comments/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//
/*
aaa bbb ccc
*/

// console.log("Hello, world!")
console.log("Hello, world!");
//
1 change: 1 addition & 0 deletions test/end-to-end/Comments/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello, world!

0 comments on commit ae0e9de

Please sign in to comment.