{"size": 952, "ext": "js", "max_stars_repo_path": "problems/1071.greatest-common-divisor-of-strings/solution.test.js", "max_stars_repo_name": "zhijiang3/leetcode", "max_stars_repo_stars_event_min_datetime": "2020-01-13T09:20:47.000Z", "max_stars_repo_stars_event_max_datetime": "2020-01-15T14:01:21.000Z", "max_issues_repo_path": "problems/1071.greatest-common-divisor-of-strings/solution.test.js", "max_issues_repo_name": "zhijiang3/leetcode", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "problems/1071.greatest-common-divisor-of-strings/solution.test.js", "max_forks_repo_name": "zhijiang3/leetcode", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.6666666667, "max_line_length": 115, "alphanum_fraction": 0.5903361345}
import gcdOfStrings from "./solution.js";

test("example 1", () => {
  expect(gcdOfStrings("ABCABC", "ABC")).toBe("ABC");
});

test("example 2", () => {
  expect(gcdOfStrings("ABABAB", "ABAB")).toBe("AB");
});

test("example 3", () => {
  expect(gcdOfStrings("LEET", "CODE")).toBe("");
});

test("example 4", () => {
  expect(gcdOfStrings("LEET", "LEETCODE")).toBe("");
});

test("example 5", () => {
  expect(gcdOfStrings("ABCABC", "ABCABC")).toBe("ABCABC");
});

test("example 6", () => {
  expect(gcdOfStrings("ABABABABABABAB", "ABAB")).toBe("AB");
});

test("example 7", () => {
  expect(gcdOfStrings("ABC", "ABCABC")).toBe("ABC");
});

test("example 8", () => {
  expect(gcdOfStrings("AAAAAAAC", "AAAA")).toBe("");
});

test("example 9", () => {
  expect(gcdOfStrings("TAUXXTAUXXTAUXXTAUXXTAUXX", "TAUXXTAUXXTAUXXTAUXXTAUXXTAUXXTAUXXTAUXXTAUXX")).toBe("TAUXX");
});

test("example 10", () => {
  expect(gcdOfStrings("CBCCBC", "CB")).toBe("");
});
