Sha256: f67f45e890f969ca51a17e8697c0e3ef9023ecff163db1ab20b27281f09ba0c5

Contents?: true

Size: 511 Bytes

Versions: 4

Compression:

Stored size: 511 Bytes

Contents

package gherkin.formatter;

import org.junit.Test;

import java.io.UnsupportedEncodingException;

import static org.junit.Assert.assertEquals;

public class ArgumentTest {
    @Test
    public void shouldFormatAscii() throws UnsupportedEncodingException {
        assertEquals("I have [[[[åtte] cukes i [[[[bøtta]", Argument.format("I have åtte cukes i bøtta", new ArgumentFormat("[[[[", "]"),
                new Argument(7, "åtte"),
                new Argument(21, "bøtta")
                ));
    }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gherkin-1.0.3-i386-mswin32 java/test/gherkin/formatter/ArgumentTest.java
gherkin-1.0.3-i386-mingw32 java/test/gherkin/formatter/ArgumentTest.java
gherkin-1.0.3-java java/test/gherkin/formatter/ArgumentTest.java
gherkin-1.0.3 java/test/gherkin/formatter/ArgumentTest.java