[x3d-public] X3D regexes for colorRGBA, image need work

Don Brutzman brutzman at nps.edu
Sat Jul 21 10:17:10 PDT 2018


following Andreas' earlier example, have added some regex tests for SFColorRGBA to regex101.com (it allows login using github account).

SFColorRGBA tests for default value pass but illegal values (including empty value) are incorrectly accepted, leading to RED test failure.  screenshot attached, clearly something is awry.

https://regex101.com/r/sy4qJ7/1

http://www.web3d.org/specifications/X3dRegularExpressions.html#SFColorRGBA

On 6/28/2018 8:45 PM, Don Brutzman wrote:
> Newly installed X3DJSAIL tests reveal:
> 
> SFColorRGBAObject.initialize() problem: failed to match default value DEFAULT_VALUE [F at 481ba2cf
> MFColorRGBAObject.initialize() problem: failed to match default value DEFAULT_VALUE [F at 12d2ce03
> SFImageObject.initialize() problem: failed to match default value DEFAULT_VALUE [I at 6239aba6
> MFImageObject.initialize() problem: failed to match default value DEFAULT_VALUE [I at 4f3bbf68
> 
> Regexes can be found in schema documentation for each  Simple type at
> 
> http://www.web3d.org/specifications/X3dSchemaDocumentation4.0/x3d-4.0.html
> 
> and further documented at
> 
> http://www.web3d.org/specifications/X3dRegularExpressions.html#SFColorRGBA
> http://www.web3d.org/specifications/X3dRegularExpressions.html#SFImage
> 
> Anyone want to tackle these?
all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RegexTestsSFcolorRGBA.png
Type: image/png
Size: 63284 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180721/68fb490f/attachment-0001.png>


More information about the x3d-public mailing list