lemmy.sieprawski.pl
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
alphacyberranger@sh.itjust.works to Programmer Humor@programming.devEnglish · rok temu

Unit Tests

sh.itjust.works

message-square
20
fedilink
433

Unit Tests

sh.itjust.works

alphacyberranger@sh.itjust.works to Programmer Humor@programming.devEnglish · rok temu
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
    ·
    rok temu

    Por que no los dos?

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

      Hooray! 🌮

  • Clent@lemmy.world
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    rok temu

    Autist 🙂‍↔️

    Autest 🙂‍↕️

    • nxdefiant@startrek.website
      link
      fedilink
      arrow-up
      8
      ·
      rok temu

      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
        ·
        rok temu

        Gold test

  • THCDenton@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    edit-2
    rok temu
    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
      ·
      rok temu

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

      • THCDenton@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        edit-2
        rok temu

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

        • ProgrammingSocks@pawb.social
          link
          fedilink
          arrow-up
          7
          ·
          rok temu

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

          • THCDenton@lemmy.world
            link
            fedilink
            arrow-up
            5
            ·
            rok temu

        • mexicancartel@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          3
          ·
          rok temu

          Nah just informed you lol

  • lunachocken@lemm.ee
    link
    fedilink
    arrow-up
    9
    ·
    edit-2
    rok temu

    the autistic overthinking the unit tests

    overthinked squared

    • bitfucker@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      rok temu

      “What if the test fail?”

      *Write a test for the test

      • lunachocken@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        rok temu

        What if the test of the test fails?

        Write a test of a test!

  • jjjalljs@ttrpg.network
    link
    fedilink
    arrow-up
    8
    ·
    rok temu

    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
    ·
    rok temu

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

    • Mertn33@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      rok temu

      ‘’'5 1 g

  • bitfucker@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    rok temu

    deleted by creator

  • Beetschnapps@lemmy.world
    cake
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    rok temu

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

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

    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
      ·
      rok temu

      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.12K users / day
  • 3.68K users / week
  • 9.17K users / month
  • 19.8K users / 6 months
  • 1 local subscriber
  • 24.6K subscribers
  • 1.41K Posts
  • 45.6K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org