<commit_before>assert = require '../assert'

suite 'property'

test 'multi-line properties', ->
	assert.compileTo '''
		body
			width: auto
			height: auto
	''', '''
		body {
			width: auto;
			height: auto;
		}
	'''

test 'single-line properties', ->
	assert.compileTo '''
		body
			width: auto; height: auto
	''', '''
		body {
			width: auto;
			height: auto;
		}
	'''

test 'mixed-line properties', ->
	assert.compileTo '''
		body
			width: auto; height: auto
			float: left
	''', '''
		body {
			width: auto;
			height: auto;
			float: left;
		}
	'''

test 'started property', ->
	assert.compileTo '''
		body
			*zoom: 1
	''', '''
		body {
			*zoom: 1;
		}
	'''

test '!important', ->
	assert.compileTo '''
		body
			width: auto !important
	''', '''
		body {
			width: auto !important;
		}
	'''

test 'with trailing ;', ->
	assert.compileTo '''
		body
			margin: 0; padding: 0;
	''', '''
		body {
			margin: 0;
			padding: 0;<commit_msg>Fix unit test typo<commit_after>assert = require '../assert'

suite 'property'

test 'multi-line properties', ->
	assert.compileTo '''
		body
			width: auto
			height: auto
	''', '''
		body {
			width: auto;
			height: auto;
		}
	'''

test 'single-line properties', ->
	assert.compileTo '''
		body
			width: auto; height: auto
	''', '''
		body {
			width: auto;
			height: auto;
		}
	'''

test 'mixed-line properties', ->
	assert.compileTo '''
		body
			width: auto; height: auto
			float: left
	''', '''
		body {
			width: auto;
			height: auto;
			float: left;
		}
	'''

test 'starred property', ->
	assert.compileTo '''
		body
			*zoom: 1
	''', '''
		body {
			*zoom: 1;
		}
	'''

test '!important', ->
	assert.compileTo '''
		body
			width: auto !important
	''', '''
		body {
			width: auto !important;
		}
	'''

test 'with trailing ;', ->
	assert.compileTo '''
		body
			margin: 0; padding: 0;
	''', '''
		body {
			margin: 0;
			padding: 0;
{'fraction_non_alphanumeric': 0.1897191308956015, 'fraction_numerical': 0.006359300476947536, 'mean_word_length': 2.6030534351145036, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '6169353', 'n_tokens_mistral': 819, 'n_tokens_neox': 692, 'n_words': 174}