<commit_before>// With Frisby installed globally, we need the full path to find it
var frisby = require('/usr/local/lib/node_modules/frisby');

// For whatever reason, the DNS lookup in my VM isn't finding the host name
// so using the IP address for now. 
//var base_url = 'http://mathml-cloud.cloudapp.net';
var base_url = 'http://172.16.58.3';

describe("Simple math conversion", function() {
	
	it("handles algebra AsciiMath", function() {
		frisby.create("Simple ASCII math")
			.post(base_url + '/mathml/convert', {
				mathType : 'AsciiMath', 
				math : 'a^2+b^2=c^2',
				description : 'true',
				svg : 'false'
			})
			.expectStatus(200)
			.expectHeaderContains("content-type", "application/json")
			.expectJSON({
				description : 'a square plus b square equals c square'
			})
	.toss();
	});
});<commit_msg>Fixing conversion spec to match new URL.<commit_after>// With Frisby installed globally, we need the full path to find it
var frisby = require('/usr/local/lib/node_modules/frisby');

// For whatever reason, the DNS lookup in my VM isn't finding the host name
// so using the IP address for now. 
//var base_url = 'http://mathml-cloud.cloudapp.net';
//var base_url = 'http://172.16.58.3';
// Local testing
var base_url = 'http://192.168.1.3:1337';

describe("Simple math conversion", function() {
	
	it("handles algebra AsciiMath", function() {
		frisby.create("Simple ASCII math")
			.post(base_url + '/equation', {
				mathType : 'AsciiMath', 
				math : 'a^2+b^2=c^2',
				description : 'true'
			})
			.expectStatus(200)
			.expectHeaderContains("content-type", "application/json")
			.expectJSON("components.?", {
				format : "description",
				source : 'a squared plus b squared equals c squared'
			})
	.toss();
	});
});
{'fraction_non_alphanumeric': 0.1566609491137793, 'fraction_numerical': 0.022870211549456832, 'mean_word_length': 3.593175853018373, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, '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': '7024799', 'n_tokens_mistral': 668, 'n_tokens_neox': 571, 'n_words': 167}