MTGZone
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
alphacyberranger@sh.itjust.works to Programmer Humor@programming.devEnglish · 1 year ago

Unit Tests

sh.itjust.works

message-square
20
fedilink
434

Unit Tests

sh.itjust.works

alphacyberranger@sh.itjust.works to Programmer Humor@programming.devEnglish · 1 year ago
message-square
20
fedilink
alert-triangle
You must log in or register to comment.
  • zqwzzle@lemmy.ca
    link
    fedilink
    English
    arrow-up
    21
    arrow-down
    1
    ·
    1 year ago

    Por que no los dos?

    • Midnight Wolf@lemmy.world
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      1
      ·
      1 year ago

      Hooray! 🌮

  • Clent@lemmy.world
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    1 year ago

    Autist 🙂‍↔️

    Autest 🙂‍↕️

    • nxdefiant@startrek.website
      link
      fedilink
      arrow-up
      8
      ·
      1 year ago

      Ok, well, if you ever come across a test framework named AuTest, you can blame me, because I’m stealing the shit out of that.

      • bitfucker@programming.dev
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        Gold test

  • THCDenton@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    edit-2
    1 year ago
    Z – Zero
    
    O – One
    
    M – Many (or More complex)
    
    B – Boundary Behaviors
    
    I – Interface definition
    
    E – Exercise Exceptional behavior
    
    S – Simple Scenarios, Simple Solutions
    
    • mexicancartel@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      7
      ·
      1 year ago

      Use triple backticks instead of one if you are trying to get monospace syntax

      • THCDenton@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        edit-2
        1 year ago

        Bless. Also please dont peel my face off for that mistake :p

        • ProgrammingSocks@pawb.social
          link
          fedilink
          arrow-up
          7
          ·
          1 year ago

          Sorry, the face scalpers are already on their way. Nothing we can do

          • THCDenton@lemmy.world
            link
            fedilink
            arrow-up
            5
            ·
            1 year ago

        • mexicancartel@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 year ago

          Nah just informed you lol

  • lunachocken@lemm.ee
    link
    fedilink
    arrow-up
    9
    ·
    edit-2
    1 year ago

    the autistic overthinking the unit tests

    overthinked squared

    • bitfucker@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      “What if the test fail?”

      *Write a test for the test

      • lunachocken@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        1 year ago

        What if the test of the test fails?

        Write a test of a test!

  • jjjalljs@ttrpg.network
    link
    fedilink
    arrow-up
    8
    ·
    1 year ago

    It’s strangely satisfying when the “this will probably never happen” test case finds a problem during development.

    I had tests for deleting that were like

    • create item a
    • create item b
    • delete item a via the code under test
    • assert item a is gone
    • assert item b is still there

    I thought maybe the whole bit with item b was excessive, but sure enough one day I accidentally fucked something up and deleted all the items, and the test pointed it out before the bad code left my local machine.

  • iAvicenna@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    what if someone tries to input a cat to this function?

    • Mertn33@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      ‘’'5 1 g

  • bitfucker@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    deleted by creator

  • Beetschnapps@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    11 months ago

    Think of it as a function you can unleash on others…

  • BakedGoods@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    arrow-down
    8
    ·
    1 year ago

    Third arm: Every fucking human

    Sick and tired of autism gang ™ laying claim to totally normal human behavior just because they have a mental developmental disfigurement.

    • Match!!@pawb.social
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      1
      ·
      1 year ago

      too bad, being sick and tired belongs to us now, go feel something else allist 😎

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.88K users / day
  • 4.5K users / week
  • 9.2K users / month
  • 17.8K users / 6 months
  • 4 local subscribers
  • 23.1K subscribers
  • 1.38K Posts
  • 50.5K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org