<commit_before>package ca.ualberta.team7project.tests;

import ca.ualberta.team7project.MainActivity;
import ca.ualberta.team7project.models.LocationModel;
import android.test.ActivityInstrumentationTestCase2;


public class LocationModelTest extends ActivityInstrumentationTestCase2<MainActivity>
{

	public LocationModelTest()
	{
		super(MainActivity.class);
	}

	public void testGetLongitude()
	{
		LocationModel lm = new LocationModel(25.0, 25.0);
		
		
		assertEquals("Should be 25.0", 25.0, lm.getLongitude());
	}
	
	public void testGetLatitude()
	{
		LocationModel lm = new LocationModel(65, 55);
		
		assertEquals("Should be 55.0", 55, lm.getLatitude());
		
	}
}<commit_msg>Added more tests for LocationModel<commit_after>package ca.ualberta.team7project.tests;

import ca.ualberta.team7project.MainActivity;
import ca.ualberta.team7project.models.LocationModel;
import android.test.ActivityInstrumentationTestCase2;


public class LocationModelTest extends ActivityInstrumentationTestCase2<MainActivity>
{

	public LocationModelTest()
	{
		super(MainActivity.class);
	}

	public void testGetLongitude()
	{
		LocationModel lm = new LocationModel(0.0, 0.0);
		
		
		assertEquals("Should be 0.0", 0.0, lm.getLongitude());
	}
	
	public void testGetLatitude()
	{
		LocationModel lm = new LocationModel(650000000.0, 1000000000.5);
		
		assertEquals("Should be 1000000000.5", 1000000000.5, lm.getLatitude());
		
	}
	
	public void testSetLongitude()
	{
		LocationModel lm = new LocationModel(55, 60);
		lm.setLongitude(99.0);
		
		assertEquals("This should be 99.0", 99.0, lm.getLongitude());
		
	}
	
	public void testSetLatitude()
	{
		LocationModel lm = new LocationModel(1000000, 500000);
		lm.setLatitude(9);
		
		assertEquals("This should be 9.0 now", 9.0, lm.getLatitude(), 0.0);
	}
	
	public void testSetLocation()
	{
		LocationModel lm = new LocationModel(9000, 5000);
		lm.setLocation(1, 2);
		
		assertEquals("New long is 1.0", 1.0, lm.getLongitude());
		assertEquals("New lat is 2.0,", 2.0, lm.getLatitude());
		
	}
}
{'fraction_non_alphanumeric': 0.11976343026121242, 'fraction_numerical': 0.06554953178905865, 'mean_word_length': 4.702247191011236, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, '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': '6745764', 'n_tokens_mistral': 823, 'n_tokens_neox': 669, 'n_words': 142}