The right tool for the right job ¯\(ツ)/¯
The right tool for the right job ¯\(ツ)/¯
Unittest in Python, enjoy! If you pass it with a function like the one in OPs picture, you have earned it.
import unittest
import random
class TestOddEven(unittest.TestCase):
def test_is_odd(self):
for _ in range(100):
num = random.randint(-2**63, 2**63 - 1)
odd_num = num | 1
even_num = num >> 1 << 1
self.assertTrue(is_odd(odd_num))
self.assertFalse(is_odd(even_num))
def test_is_even(self):
for _ in range(100):
num = random.randint(-2**63, 2**63 - 1)
odd_num = num | 1
even_num = num >> 1 << 1
self.assertTrue(is_even(even_num))
self.assertFalse(is_even(odd_num))
if __name__ == '__main__':
unittest.main()
Last time I used EndeavourOS, I managed to get the graphical installer to install BTRFS on LUKS, it did require custom partitioning in the graphical installer, snapper just worked after that.
Zram (or was it Zswap?) was pretty easy to enable after installatiok
The bootloader might be beyond what the graphical installer can do though… I never really bothered switching…
I gotta ask, what is it you want that the installer doesn’t provide?
I have been on Arch , and I’m now running NixOS as my daily driver… IMO NixOS is less of a hassle to set up, and nearly maintenance free compared to Arch… Twice a year when the channel updates there’s a bit of stuff, but every change I need to make is usually explained in the output of my
nixos-rebuild
… If something suddenly breaks in an update, I just boot into my previous generation, roll back myflake.lock
and wait a few days for a fix to be available…