<commit_before>﻿
Describe "Test-Get-PSDrive" {
    It "Should not throw" {
        Get-PSDrive | Should Not BeNullOrEmpty
        (Get-PSDrive).Name | Should Not BeNullOrEmpty 
        (Get-PSDrive).Root.Length | Should Not BeLessThan 1

        gdr | Should Not BeNullOrEmpty
        (gdr).Name | Should Not BeNullOrEmpty 
        (gdr).Root.Length | Should Not BeLessThan 1
    }

    It "Should return drive info"{
        (Get-PSDrive D).Name | Should Be D
        (Get-PSDrive D).Root | Should Be D:\
        (Get-PSDrive D).Provider.Name | Should Be FileSystem

        (gdr D).Name | Should Be D
        (gdr D).Root | Should Be D:\
        (gdr D).Provider.Name | Should Be FileSystem
    }

    It "Should be able to access switches"{
        (Get-PSDrive -PSProvider FileSystem).Name.Length | Should BeGreaterThan 0

        (gdr -PSProvider FileSystem).Name.Length | Should BeGreaterThan 0
    }

    It "Should return true for a drive that does not exist"{
        !(Get-PSDrive fake -ErrorAction SilentlyContinue) | Should Be $True
    }
}
<commit_msg>fixed test to run on linux<commit_after>﻿
Describe "Test-Get-PSDrive" {
    It "Should not throw" {
        Get-PSDrive | Should Not BeNullOrEmpty
        (Get-PSDrive).Name | Should Not BeNullOrEmpty 
        (Get-PSDrive).Root.Length | Should Not BeLessThan 1

        gdr | Should Not BeNullOrEmpty
        (gdr).Name | Should Not BeNullOrEmpty 
        (gdr).Root.Length | Should Not BeLessThan 1
    }

    It "Should return drive info"{
        (Get-PSDrive Env).Name | Should Be Env
        (Get-PSDrive /).Root | Should Be /
        (Get-PSDrive /).Provider.Name | Should Be FileSystem

        (gdr Env).Name | Should Be Env
        (gdr /).Root | Should Be /
        (gdr /).Provider.Name | Should Be FileSystem
    }

    It "Should be able to access switches"{
        (Get-PSDrive -PSProvider FileSystem).Name.Length | Should BeGreaterThan 0

        (gdr -PSProvider FileSystem).Name.Length | Should BeGreaterThan 0
    }

    It "Should return true for a drive that does not exist"{
        !(Get-PSDrive fake -ErrorAction SilentlyContinue) | Should Be $True
    }
}

{'fraction_non_alphanumeric': 0.09590316573556797, 'fraction_numerical': 0.0037243947858473, 'mean_word_length': 2.3010752688172045, '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': '6636338', 'n_tokens_mistral': 691, 'n_tokens_neox': 646, 'n_words': 213}