Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for TestSparse (0.18 sec)

  1. src/test/java/org/codelibs/fess/util/KuromojiCSVUtilTest.java

    import static org.hamcrest.Matchers.is;
    
    import java.util.Arrays;
    import java.util.List;
    
    import org.codelibs.fess.unit.UnitFessTestCase;
    
    public class KuromojiCSVUtilTest extends UnitFessTestCase {
        public void test_parse() {
            String value;
            List<String> expected;
            List<String> actual;
    
            value = "フェス";
            expected = Arrays.asList("フェス");
            actual = Arrays.asList(KuromojiCSVUtil.parse(value));
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. pkg/config/schema/ast/ast_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package ast
    
    import (
    	"testing"
    
    	. "github.com/onsi/gomega"
    )
    
    func TestParse(t *testing.T) {
    	cases := []struct {
    		input    string
    		expected *Metadata
    	}{
    		{
    			input:    ``,
    			expected: &Metadata{},
    		},
    		{
    			input: `
    resources:
      - kind:         "VirtualService"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 00:31:03 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/util/GsaConfigParserTest.java

        @Override
        public void setUp() throws Exception {
            super.setUp();
            ComponentUtil.register(new SystemHelper(), "systemHelper");
        }
    
        public void test_parse() throws IOException {
            GsaConfigParser parser = new GsaConfigParser();
            try (InputStream is = ResourceUtil.getResourceAsStream("data/gsaconfig.xml")) {
                parser.parse(new InputSource(is));
            }
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. src/text/template/parse/parse_test.go

    			t.Errorf("%s=(%q): got\n\t%v\nexpected\n\t%v", test.name, test.input, result, test.result)
    		}
    	}
    }
    
    func TestParse(t *testing.T) {
    	testParse(false, t)
    }
    
    // Same as TestParse, but we copy the node first
    func TestParseCopy(t *testing.T) {
    	testParse(true, t)
    }
    
    func TestParseWithComments(t *testing.T) {
    	textFormat = "%q"
    	defer func() { textFormat = "%s" }()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 24K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/util/PrunedTagTest.java

            assertEquals("PrunedTag [tag=" + tag + ", id=" + id + ", css=" + css + ", attrName=" + attrName + ", attrValue=" + attrValue + "]",
                    prunedtag.toString());
        }
    
        public void test_parse() {
            PrunedTag[] tags = PrunedTag.parse("");
            assertEquals(0, tags.length);
    
            tags = PrunedTag.parse("a");
            assertEquals(1, tags.length);
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. src/flag/flag_test.go

    	} else if f.Args()[0] != extra {
    		t.Errorf("expected argument %q got %q", extra, f.Args()[0])
    	}
    }
    
    func TestParse(t *testing.T) {
    	ResetForTesting(func() { t.Error("bad parse") })
    	testParse(CommandLine, t)
    }
    
    func TestFlagSetParse(t *testing.T) {
    	testParse(NewFlagSet("test", ContinueOnError), t)
    }
    
    // Declare a user-defined flag type.
    type flagVar []string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 22K bytes
    - Viewed (0)
  7. src/internal/gover/gover_test.go

    	{"1.19rc1", "1.19.0", -1},
    	{"1.19alpha3", "1.19beta2", -1},
    	{"1.19beta2", "1.19rc1", -1},
    	{"1.1", "1.99999999999999998", -1},
    	{"1.99999999999999998", "1.99999999999999999", -1},
    }
    
    func TestParse(t *testing.T) { test1(t, parseTests, "Parse", Parse) }
    
    var parseTests = []testCase1[string, Version]{
    	{"1", Version{"1", "0", "0", "", ""}},
    	{"1.2", Version{"1", "2", "0", "", ""}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 23:20:32 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  8. internal/arn/arn_test.go

    				return
    			}
    			if !reflect.DeepEqual(got, tt.want) {
    				t.Errorf("NewIAMRoleARN() got = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func TestParse(t *testing.T) {
    	type args struct {
    		arnStr string
    	}
    	tests := []struct {
    		name    string
    		args    args
    		wantArn ARN
    		wantErr bool
    	}{
    		{
    			name: "valid ARN must succeed",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 08:31:34 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/RobotsTxtHelperTest.java

            StandardCrawlerContainer container = new StandardCrawlerContainer().singleton("robotsTxtHelper", RobotsTxtHelper.class);
            robotsTxtHelper = container.getComponent("robotsTxtHelper");
        }
    
        public void testParse() {
            RobotsTxt robotsTxt;
            final InputStream in = RobotsTxtHelperTest.class.getResourceAsStream("robots.txt");
            try {
                robotsTxt = robotsTxtHelper.parse(in);
            } finally {
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. internal/etag/etag_test.go

    	{String: "90402c78d2dccddee1e9e86222ce2c6361675f3529d26000ae2e900ff216b3cb59e130e092d8a2981e776f4d0bd60941-1", ShouldFail: true}, // 11
    }
    
    func TestParse(t *testing.T) {
    	for i, test := range parseTests {
    		etag, err := Parse(test.String)
    		if err == nil && test.ShouldFail {
    			t.Fatalf("Test %d: parse should have failed but succeeded", i)
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 12.6K bytes
    - Viewed (0)
Back to top