<commit_before>package com.tinkerpop.gremlin.scala.sideeffect

import com.tinkerpop.blueprints.pgm.impls.tg.TinkerGraphFactory
import com.tinkerpop.gremlin.test.ComplianceTest
import com.tinkerpop.blueprints.pgm.Vertex
import com.tinkerpop.gremlin.scala._
import com.tinkerpop.pipes.Pipe

/**
 * @author <NAME> (http://markorodriguez.com)
 */

class SideEffectStepTest extends com.tinkerpop.gremlin.test.sideeffect.SideEffectStepTest {

    val g = TinkerGraphFactory.createTinkerGraph();

    override def testCompliance() {
        ComplianceTest.testCompliance(this.getClass);
    }

    def test_g_v1_sideEffectXstore_aX_propertyXnameX() {
        var a = g.getVertex(2);
        super.test_g_v1_sideEffectXstore_aX_propertyXnameX(g.v(1).->.sideEffect {v:Vertex => a = v}.property("name").asInstanceOf[Pipe[Vertex,String]]);
        System.out.println(a + " must equal " + g.v(1));
        //assertEquals(a, g.v(1))
    }

    def test_g_v1_out_sideEffectXincr_cX_propertyXnameX() {
        var c = 0;
        super.test_g_v1_out_sideEffectXincr_cX_propertyXnameX(g.v(1).->.out.sideEffect {v:Vertex => c=c+1}.property("name").asInstanceOf[Pipe[Vertex,String]]);
        System.out.println(c + " must equal 3");
        //assertEquals(c, 3);
    }

    def test_g_v1_out_sideEffectXfalseX_propertyXnameX() {
        super.test_g_v1_out_sideEffectXfalseX_propertyXnameX(g.v(1).->.out.sideEffect {v:Vertex => false}.property("name").asInstanceOf[Pipe[Vertex,String]]);
    }

}<commit_msg>asserts<commit_after>package com.tinkerpop.gremlin.scala.sideeffect

import com.tinkerpop.blueprints.pgm.impls.tg.TinkerGraphFactory
import com.tinkerpop.gremlin.test.ComplianceTest
import com.tinkerpop.blueprints.pgm.Vertex
import com.tinkerpop.gremlin.scala._
import com.tinkerpop.pipes.Pipe
import junit.framework.Assert._

/**
 * @author <NAME> (http://markorodriguez.com)
 */

class SideEffectStepTest extends com.tinkerpop.gremlin.test.sideeffect.SideEffectStepTest {

    val g = TinkerGraphFactory.createTinkerGraph();

    override def testCompliance() {
        ComplianceTest.testCompliance(this.getClass);
    }

    def test_g_v1_sideEffectXstore_aX_propertyXnameX() {
        var a = g.getVertex(2)
        super.test_g_v1_sideEffectXstore_aX_propertyXnameX(g.v(1).->.sideEffect {v:Vertex => a = v}.property("name").asInstanceOf[Pipe[Vertex,String]])
        System.out.println(a + " must equal " + g.v(1))
        assertEquals(a, g.v(1))
    }

    def test_g_v1_out_sideEffectXincr_cX_propertyXnameX() {
        var c = 0;
        super.test_g_v1_out_sideEffectXincr_cX_propertyXnameX(g.v(1).->.out.sideEffect {v:Vertex => c=c+1}.property("name").asInstanceOf[Pipe[Vertex,String]]);
        System.out.println(c + " must equal 3");
        assertEquals(c, 3);
    }

    def test_g_v1_out_sideEffectXfalseX_propertyXnameX() {
        super.test_g_v1_out_sideEffectXfalseX_propertyXnameX(g.v(1).->.out.sideEffect {v:Vertex => false}.property("name").asInstanceOf[Pipe[Vertex,String]]);
    }

}
{'fraction_non_alphanumeric': 0.13404468156052018, 'fraction_numerical': 0.0106702234078026, 'mean_word_length': 4.2631578947368425, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '1378525', 'n_tokens_mistral': 1150, 'n_tokens_neox': 1093, 'n_words': 122}