<commit_before>/*
 * Copyright 2000-2013 JetBrains s.r.o.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package git4idea.tests;

import com.intellij.openapi.util.SystemInfo;
import git4idea.config.GitVersion;
import org.testng.annotations.Test;

import java.lang.reflect.Field;

import static git4idea.config.GitVersion.Type;
import static org.testng.Assert.*;

/**
 * @author <NAME>
 */
public class GitVersionTest {

  private static final TestGitVersion[] commonTests = {
    new TestGitVersion("git version 1.6.4", 1, 6, 4, 0),
    new TestGitVersion("git version 1.7.3.3", 1, 7, 3, 3),
    new TestGitVersion("git version 1.7.3.5.gb27be", 1, 7, 3, 5),
    new TestGitVersion("git version 1.7.4-rc1", 1, 7, 4, 0),
    new TestGitVersion("git version 1.7.7.5 (Apple Git-24)", 1, 7, 7, 5)
  };

  private static final TestGitVersion[] msysTests = {
    new TestGitVersion("git version 1.6.4.msysgit.0", 1, 6, 4, 0),
    new TestGitVersion("git version 1.7.3.3.msysgit.1", 1, 7, 3, 3),
    new TestGitVersion("git version 1.7.3.2.msysgit", 1, 7, 3, 2),
    new TestGitVersion("git version 1.7.3.5.msysgit.gb27be", 1, 7, 3, 5)
  };<commit_msg>[git] convert GitVersionTest to junit<commit_after>/*
 * Copyright 2000-2013 JetBrains s.r.o.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package git4idea.tests;

import com.intellij.openapi.util.SystemInfo;
import git4idea.config.GitVersion;
import org.junit.Test;

import java.lang.reflect.Field;

import static git4idea.config.GitVersion.Type;
import static org.testng.Assert.*;

/**
 * @author <NAME>
 */
public class GitVersionTest {

  private static final TestGitVersion[] commonTests = {
    new TestGitVersion("git version 1.6.4", 1, 6, 4, 0),
    new TestGitVersion("git version 1.7.3.3", 1, 7, 3, 3),
    new TestGitVersion("git version 1.7.3.5.gb27be", 1, 7, 3, 5),
    new TestGitVersion("git version 1.7.4-rc1", 1, 7, 4, 0),
    new TestGitVersion("git version 1.7.7.5 (Apple Git-24)", 1, 7, 7, 5)
  };

  private static final TestGitVersion[] msysTests = {
    new TestGitVersion("git version 1.6.4.msysgit.0", 1, 6, 4, 0),
    new TestGitVersion("git version 1.7.3.3.msysgit.1", 1, 7, 3, 3),
    new TestGitVersion("git version 1.7.3.2.msysgit", 1, 7, 3, 2),
    new TestGitVersion("git version 1.7.3.5.msysgit.gb27be", 1, 7, 3, 5)
  };
{'fraction_non_alphanumeric': 0.1279735019572418, 'fraction_numerical': 0.05600722673893405, 'mean_word_length': 3.71875, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 12, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4667070', 'n_tokens_mistral': 1243, 'n_tokens_neox': 1097, 'n_words': 380}