<commit_before>import XCTest
@testable import expocity

class TMHome:XCTestCase
{
    var mHome:MHome?
    
    override func setUp()
    {
        super.setUp()
        
        mHome = MHome()
    }
    
    override func tearDown()
    {
        mHome = nil
        
        super.tearDown()
    }
    
    //MARK: -
    
    func testRoomOwner()
    {
        let firebaseRoom:FDatabaseModelRoom = mHome!.room()
        let userId:String = firebaseRoom.owner
        XCTAssertFalse(userId.isEmpty, "Room has no owner")
    }
    
    func testEmptyRoomName()
    {
        let firebaseRoom:FDatabaseModelRoom = mHome!.room()
        let roomName:String = firebaseRoom.name
        XCTAssertFalse(roomName.isEmpty, "Room name is empty")
    }
}<commit_msg>test room name<commit_after>import XCTest
@testable import expocity

class TMHome:XCTestCase
{
    private let kRoomName:String = "MyWeirdRoomName with space"
    
    var mHome:MHome?
    
    override func setUp()
    {
        super.setUp()
        
        mHome = MHome()
    }
    
    override func tearDown()
    {
        mHome = nil
        
        super.tearDown()
    }
    
    //MARK: -
    
    func testRoomOwner()
    {
        let firebaseRoom:FDatabaseModelRoom = mHome!.room()
        let userId:String = firebaseRoom.owner
        XCTAssertFalse(userId.isEmpty, "Room has no owner")
    }
    
    func testEmptyRoomName()
    {
        let firebaseRoom:FDatabaseModelRoom = mHome!.room()
        let roomName:String = firebaseRoom.name
        XCTAssertFalse(roomName.isEmpty, "Room name is empty")
    }
    
    func testRoomName()
    {
        mHome!.itemTitle.title = kRoomName
        let firebaseRoom:FDatabaseModelRoom = mHome!.room()
        let roomName:String = firebaseRoom.name
        XCTAssertTrue(roomName == kRoomName, "Room name mismatch")
    }
}
{'fraction_non_alphanumeric': 0.08987547374120194, 'fraction_numerical': 0.0, 'mean_word_length': 2.0646766169154227, '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': '5434125', 'n_tokens_mistral': 586, 'n_tokens_neox': 584, 'n_words': 119}