<commit_before>/*
 * algorithms  Copyright (C) 2015 <NAME>
 *     This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
 *     This is free software, and you are welcome to redistribute it
 *     under certain conditions; type `show c' for details.
 */

import org.junit.Test;
import static org.junit.Assert.assertEquals;

import org.ratchetrobotics.algorithms.util.CartesianCoordinate;

public class CartesianCoordinateTest {
    @Test
    public void storesXCoordinates() {
        CartesianCoordinate coordinate = new CartesianCoordinate(1,2);
        assertEquals("getX should return 1 when x in the constructor was 1", 1, coordinate.getX(), 0.0/*ε, a small fudge for doubles*/);
    }

    @Test
    public void storesYCoordinates() {
        CartesianCoordinate coordinate = new CartesianCoordinate(1,2);
        assertEquals("gety should return 2 when y in the constructor was 2", 2, coordinate.getY(), 0.0/*ε, a small fudge for doubles*/);
    }
}<commit_msg>All the tests on CartesianCoordinate<commit_after>/*
 * algorithms  Copyright (C) 2015 <NAME>
 *     This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
 *     This is free software, and you are welcome to redistribute it
 *     under certain conditions; type `show c' for details.
 */

import org.junit.Test;
import static org.junit.Assert.assertEquals;

import org.ratchetrobotics.algorithms.util.CartesianCoordinate;

public class CartesianCoordinateTest {
    @Test
    public void storesXCoordinates() {
        CartesianCoordinate coordinate = new CartesianCoordinate(1,2);
        assertEquals("getX should return 1 when x in the constructor was 1", 1, coordinate.getX(), 0.0/*ε, a small fudge for doubles*/);
    }

    @Test
    public void storesYCoordinates() {
        CartesianCoordinate coordinate = new CartesianCoordinate(1,2);
        assertEquals("getY should return 2 when y in the constructor was 2", 2, coordinate.getY(), 0.0/*ε, a small fudge for doubles*/);
    }

    @Test
    public void settableXCoordinates() {
        CartesianCoordinate coordinate = new CartesianCoordinate(1,2);
        coordinate.setX(8);
        assertEquals("getX should return 8 when x in the constructor was 1 but was overriden with 8 by setX", 8, coordinate.getX(), 0.0/*ε, a small fudge for doubles*/);
    }

    @Test
    public void settableYCoordinates() {
        CartesianCoordinate coordinate = new CartesianCoordinate(1,2);
        coordinate.setY(10);
        assertEquals("getY should return 10 when y in the constructor was 2 but was overriden with 10 by setY", 2, coordinate.getY(), 0.0/*ε, a small fudge for doubles*/);
    }
}
{'fraction_non_alphanumeric': 0.09262048192771084, 'fraction_numerical': 0.021460843373493976, 'mean_word_length': 3.5110356536502545, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3859059', 'n_tokens_mistral': 791, 'n_tokens_neox': 738, 'n_words': 276}