<commit_before>package org.jetbrains.plugins.scala.lang.typeInference

import _root_.org.jetbrains.plugins.scala.lang.psi.types.ScType
import base.ScalaPsiTestCase
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.psi.PsiManager
import com.intellij.psi.util.PsiTreeUtil
import psi.api.expr.ScExpression
import psi.api.ScalaFile

/**
 * User: <NAME>
 * Date: 10.03.2009
 */

class TypeInferenceTest extends ScalaPsiTestCase {
  private val startExprMarker = "/*start*/"
  private val endExprMarker = "/*end*/"

  //use it if you want to generate tests from appropriate folder
  def testGenerate {
    generateTests
    assert(false) //to not forgot to comment this
  }

  //--------------------------------------- Generic Call ---------------------------------------------------
  def testIsInstanceOf {
    testPath = "/typeInference/genericCall/IsInstanceOf"
    realOutput = """
() => Boolean
"""
    realOutput = realOutput.trim
    doTest
  }

  def testJavaGenericFunction {
    testPath = "/typeInference/genericCall/JavaGenericFunction"
    realOutput = """
ArrayList[Int]
"""
    realOutput = realOutput.trim
    doTest
  }

  def testAsInstanceOf {
    testPath = "/typeInference/genericCall/AsInstanceOf"
    realOutput = """
() => Float
"""
    realOutput = realOutput.trim
    doTest<commit_msg>commented testGenerate...<commit_after>package org.jetbrains.plugins.scala.lang.typeInference

import _root_.org.jetbrains.plugins.scala.lang.psi.types.ScType
import base.ScalaPsiTestCase
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.psi.PsiManager
import com.intellij.psi.util.PsiTreeUtil
import psi.api.expr.ScExpression
import psi.api.ScalaFile

/**
 * User: <NAME>
 * Date: 10.03.2009
 */

class TypeInferenceTest extends ScalaPsiTestCase {
  private val startExprMarker = "/*start*/"
  private val endExprMarker = "/*end*/"

  /*//use it if you want to generate tests from appropriate folder
  def testGenerate {
    generateTests
    assert(false) //to not forgot to comment this
  }*/

  //--------------------------------------- Generic Call ---------------------------------------------------
  def testIsInstanceOf {
    testPath = "/typeInference/genericCall/IsInstanceOf"
    realOutput = """
() => Boolean
"""
    realOutput = realOutput.trim
    doTest
  }

  def testJavaGenericFunction {
    testPath = "/typeInference/genericCall/JavaGenericFunction"
    realOutput = """
ArrayList[Int]
"""
    realOutput = realOutput.trim
    doTest
  }

  def testAsInstanceOf {
    testPath = "/typeInference/genericCall/AsInstanceOf"
    realOutput = """
() => Float
"""
    realOutput = realOutput.trim
    doTest
{'fraction_non_alphanumeric': 0.1689240030097818, 'fraction_numerical': 0.006019563581640331, 'mean_word_length': 2.760961810466761, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '6818733', 'n_tokens_mistral': 799, 'n_tokens_neox': 770, 'n_words': 164}