<commit_before>require('buster').spec.expose();
var expect = require('buster').expect;

var from = require('../../lib/source/from').from;
var observe = require('../../lib/combinator/observe').observe;

var sentinel = { value: 'sentinel' };
var other = { value: 'other' };

describe('from', function() {

	it('should support array-like items', function() {
		function observeArguments(){
			var result = [];
			return observe(function(x) {
				result.push(x);
			}, from(arguments)).then(function() {
				expect(result).toEqual(result);
			});
		}
		return observeArguments(1,2,3);
	});

});<commit_msg>compare result to known array<commit_after>require('buster').spec.expose();
var expect = require('buster').expect;

var from = require('../../lib/source/from').from;
var observe = require('../../lib/combinator/observe').observe;

var sentinel = { value: 'sentinel' };
var other = { value: 'other' };


describe('from', function() {

	it('should support array-like items', function() {
		function observeArguments(){
			var result = [];
			return observe(function(x) {
				result.push(x);
			}, from(arguments)).then(function() {
				expect(result).toEqual([1,2,3]);
			});
		}
		return observeArguments(1,2,3);
	});

});
{'fraction_non_alphanumeric': 0.20621931260229132, 'fraction_numerical': 0.007364975450081833, 'mean_word_length': 4.271551724137931, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5183702', 'n_tokens_mistral': 428, 'n_tokens_neox': 384, 'n_words': 76}