Skip to content

Commit

Permalink
Merge pull request #179 from moosetechnology/178-Some-tests-in-EsopeG…
Browse files Browse the repository at this point in the history
…rammarTest-fails

Fix #178
  • Loading branch information
uNouss authored Nov 22, 2024
2 parents 22b5747 + 19b5d14 commit 6475d12
Show file tree
Hide file tree
Showing 10 changed files with 429 additions and 370 deletions.
38 changes: 20 additions & 18 deletions src/EsopeImporter-Tests/EsopeFullGrammarTest.class.st
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
Class {
#name : #EsopeFullGrammarTest,
#superclass : #TestCase,
#name : 'EsopeFullGrammarTest',
#superclass : 'TestCase',
#instVars : [
'parser'
],
#category : 'EsopeImporter-Tests-Rewriter'
#category : 'EsopeImporter-Tests-Rewriter',
#package : 'EsopeImporter-Tests',
#tag : 'Rewriter'
}

{ #category : #tests }
{ #category : 'tests' }
EsopeFullGrammarTest class >> esopeBigFile [

^ ' subroutine vcstp(ov1,pshp1,pbeg1,pend1,ov2,status)
Expand Down Expand Up @@ -367,7 +369,7 @@ C -- terminer en echec
'
]

{ #category : #tests }
{ #category : 'tests' }
EsopeFullGrammarTest class >> esopeFileWithCallStatement [

^ ' subroutine valrma(
Expand Down Expand Up @@ -461,7 +463,7 @@ C -- terminer en echec
'
]

{ #category : #tests }
{ #category : 'tests' }
EsopeFullGrammarTest class >> esopeSmallFile [

^ ' subroutine stgbrk(
Expand Down Expand Up @@ -682,34 +684,34 @@ C
'
]

{ #category : #running }
{ #category : 'running' }
EsopeFullGrammarTest >> parserClass [

^ PPEsopeGrammar
]

{ #category : #running }
{ #category : 'running' }
EsopeFullGrammarTest >> setUp [

super setUp.
parser := self parserClass new
]

{ #category : #running }
{ #category : 'running' }
EsopeFullGrammarTest >> testBigFile [

self deny:
(parser parse: self class esopeBigFile) isPetit2Failure
]

{ #category : #running }
{ #category : 'running' }
EsopeFullGrammarTest >> testEmptyFile [

self deny: (parser parse: '
') isPetit2Failure
]

{ #category : #running }
{ #category : 'running' }
EsopeFullGrammarTest >> testEsopePointeurFile [

self deny: (parser parse: ' subroutine stgbrk(
Expand All @@ -723,7 +725,7 @@ c == sorties ==
') isPetit2Failure
]

{ #category : #running }
{ #category : 'running' }
EsopeFullGrammarTest >> testEsopeSegactFile [

self deny: (parser parse: ' subroutine stgbrk(
Expand All @@ -737,7 +739,7 @@ c == sorties ==
') isPetit2Failure
]

{ #category : #running }
{ #category : 'running' }
EsopeFullGrammarTest >> testEsopeSegadjFile [

self deny: (parser parse: ' subroutine stgbrk(
Expand All @@ -752,7 +754,7 @@ c == sorties ==
') isPetit2Failure
]

{ #category : #running }
{ #category : 'running' }
EsopeFullGrammarTest >> testEsopeSegdesFile [

self deny: (parser parse: ' subroutine stgbrk(
Expand All @@ -767,7 +769,7 @@ c == sorties ==
') isPetit2Failure
]

{ #category : #running }
{ #category : 'running' }
EsopeFullGrammarTest >> testEsopeSeginiFile [

self deny: (parser parse: ' subroutine stgbrk(
Expand All @@ -782,7 +784,7 @@ c == sorties ==
') isPetit2Failure
]

{ #category : #running }
{ #category : 'running' }
EsopeFullGrammarTest >> testNonEsopeFile [

self deny: (parser parse: ' subroutine stgbrk(
Expand All @@ -795,14 +797,14 @@ c == sorties ==
') isPetit2Failure
]

{ #category : #running }
{ #category : 'running' }
EsopeFullGrammarTest >> testSmallFile [

self deny:
(parser parse: self class esopeSmallFile) isPetit2Failure
]

{ #category : #tests }
{ #category : 'tests' }
EsopeFullGrammarTest >> testStart [

self deny:
Expand Down
Loading

0 comments on commit 6475d12

Please sign in to comment.