<commit_before><commit_msg>Alueelle lisätty testit<commit_after>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package fi.c5.juustofraktaalit.hajauttaja;

import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author <NAME>
 */
public class AlueTest {
    
    @Test
    public void testLuoAlue() {
        Alue<Double> a = new Alue(1., 2., 10., 20.);
        Assert.assertNotNull(a);
        Assert.assertTrue(1. == a.x1);
        Assert.assertTrue(2. == a.y1);
        Assert.assertTrue(10. == a.x2);
        Assert.assertTrue(20. == 20.);
    }
    
    @Test
    public void testEquals() {
        Alue<Integer> a = new Alue(0, 0, 0, 0);
        Alue<Integer> b = new Alue(0, 0, 0, 0);
        Assert.assertTrue(a.equals(b));
        
        Alue<Integer> c = new Alue(4, 2, 2, 1);
        Alue<Integer> d = new Alue(4, 2, 2, 1);
        Assert.assertTrue(c.equals(d));
    }
   
    
}

{'fraction_non_alphanumeric': 0.14184397163120568, 'fraction_numerical': 0.030141843971631204, 'mean_word_length': 2.484567901234568, 'pattern_counts': {'":': 0, '<': 9, '<?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': '7323842', 'n_tokens_mistral': 412, 'n_tokens_neox': 393, 'n_words': 101}