{"size": 670, "ext": "js", "max_stars_repo_path": "medium/the-conquering-queen/code.spec.js", "max_stars_repo_name": "jamoum/JavaScript_Challenges_Solutions", "max_stars_repo_stars_event_min_datetime": "2020-04-27T08:04:40.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-16T20:01:29.000Z", "max_issues_repo_path": "medium/the-conquering-queen/code.spec.js", "max_issues_repo_name": "jamoum/JavaScript_Challenges_Solutions", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "medium/the-conquering-queen/code.spec.js", "max_forks_repo_name": "jamoum/JavaScript_Challenges_Solutions", "max_forks_repo_forks_event_min_datetime": "2019-03-05T15:32:13.000Z", "max_forks_repo_forks_event_max_datetime": "2021-06-22T19:02:18.000Z"}
{"max_stars_count": 12, "max_issues_count": null, "max_forks_count": 18, "avg_line_length": 39.4117647059, "max_line_length": 56, "alphanum_fraction": 0.5432835821}
const canCapture = require('./code');

describe('Tests', () => {
    test('the tests', () => {
        expect(canCapture(['A1', 'H8'])).toEqual(true);
        expect(canCapture(['A1', 'C2'])).toEqual(false);
        expect(canCapture(['G3', 'E5'])).toEqual(true);
        expect(canCapture(['D3', 'C2'])).toEqual(true);
        expect(canCapture(['F4', 'C1'])).toEqual(true);
        expect(canCapture(['H1', 'A7'])).toEqual(false);
        expect(canCapture(['H1', 'A8'])).toEqual(true);
        expect(canCapture(['G1', 'G2'])).toEqual(true);
        expect(canCapture(['A5', 'G5'])).toEqual(true);
        expect(canCapture(['A5', 'E2'])).toEqual(false);
    });
});
