Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Tests on extended ascii charsets fail with jasmin-maven-plugin #182

Closed
Hilberty opened this Issue Jan 23, 2012 · 1 comment

Comments

Projects
None yet
1 participant

Hello,

The following test :

describe('Test fonction htmlEncode',function()
{
it('Test encode characters',function()
{
input = 'ÜÄ';
expected = 'ÜÄ';
input = input.replace(/Ü/g,'Ü');
result = input.replace(/Ä/g,'Ä');
expect(result).toBe(expected);

    result = 'Ü'.replace(/Ü/g,'Ü');
    expect(result).toBe('Ü');

    result = 'Ä'.replace(/Ä/g,'Ä');
    expect(result).toBe('Ä');

    input = 'ÜÄ';
    input = input.replace(/Ü/g,'Ü');
    expect(input).toBe('ÜÄ');

    input = input.replace(/Ä/g,'Ä');
    expect(input).toBe(expected);

    input = 'Üabcdef';
    input = input.replace(/Ü/g,'Ü');
    expect(input).toBe('Üabcdef');
});

});

fails while executing from Eclipse with the jasmin-maven-plugin :

1.) Test fonction htmlEncode it Test encode characters <<< FAILURE!

  • Expected 'ÜÜ' to be 'ÜÄ'.
  • Passed.
  • Passed.
  • Expected 'ÜÜ' to be 'Ü?'.
  • Expected 'ÜÜ' to be 'ÜÄ'.
  • Passed.

Executed from a browser in SpecRunner.html, it returns no error.

Is there a way to configure the encoding ?

@Hilberty Hilberty closed this Jan 24, 2012

Found...
Add an entry for Source Code Encoding in the properties section of pom.xml.
properties
...
project.build.sourceEncoding>ISO-8859-1/project.build.sourceEncoding
/properties

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment