smalltalk
/
osmo-st-sip
Archived
1
0
Fork 0

grammar: Fix the whitespace handling due not returning things

This commit is contained in:
Holger Hans Peter Freyther 2011-06-11 21:04:41 +02:00
parent 85a359e287
commit 7505ed0c3f
2 changed files with 8 additions and 8 deletions

View File

@ -173,7 +173,7 @@ PP.PPCompositeParser subclass: SIPGrammar [
LWS [
<category: 'generic'>
(WSP star, CRLF) optional, WSP plus
^ (WSP star, CRLF) optional, WSP plus
]
SWS [

View File

@ -84,25 +84,25 @@ PP.PPCompositeParserTest subclass: SIPGrammarTest [
hdr := res second.
self assert: (hdr at: 1) first first = 'Via'.
self assert: (hdr at: 1) first third = ' SIP/2.0/UDP 172.16.254.24;rport=5060;branch=z9hG4bKfwjlxdrv'.
self assert: (hdr at: 1) first third = 'SIP/2.0/UDP 172.16.254.24;rport=5060;branch=z9hG4bKfwjlxdrv'.
self assert: (hdr at: 2) first first = 'From'.
self assert: (hdr at: 2) first third = ' "zecke" <sip:1000@on-waves.com>;tag=wmycl'.
self assert: (hdr at: 2) first third = '"zecke" <sip:1000@on-waves.com>;tag=wmycl'.
self assert: (hdr at: 3) first first = 'To'.
self assert: (hdr at: 3) first third = ' <sip:9198@172.16.1.72>'.
self assert: (hdr at: 3) first third = '<sip:9198@172.16.1.72>'.
self assert: (hdr at: 4) first first = 'Call-ID'.
self assert: (hdr at: 4) first third = ' ofcwnpmulmceasg@xiaoyu'.
self assert: (hdr at: 4) first third = 'ofcwnpmulmceasg@xiaoyu'.
self assert: (hdr at: 5) first first = 'CSeq'.
self assert: (hdr at: 5) first third = ' 983 INVITE'.
self assert: (hdr at: 5) first third = '983 INVITE'.
self assert: (hdr at: 6) first first = 'User-Agent'.
self assert: (hdr at: 6) first third = ' FreeSWITCH-mod_sofia/1.0.head-git-dff41af 2011-04-20 14-11-24 +0200'.
self assert: (hdr at: 6) first third = 'FreeSWITCH-mod_sofia/1.0.head-git-dff41af 2011-04-20 14-11-24 +0200'.
self assert: (hdr at: 7) first first = 'Content-Length'.
self assert: (hdr at: 7) first third = ' 0'.
self assert: (hdr at: 7) first third = '0'.
]
testInviteOK [